Description
In some cases we need to perform multiple queries to be able to extract the document we need.
First case:
Query1 without return fields: returns the id of keys (with with vector_distance or other) => The SubsetA
=> If I need to perform a second query, Query2 taking SubsetA as input to perform a new VectorQuery limited to this subset:
Search query language permits me to use INKEYS keyword to limit the scope of a query to a subset of keys
Second case:
Query1 without return an indexed id field (with with vector_distance or other) => The SubsetB
=> If I need to perform a second query, Query2 taking SubsetB as input to perform a new VectorQuery limited to this subset:
Search query language permits me to use a TAG filter on the id field to limit the scope of a query to a subset of id
in both case we may imagine N steps.
It would be nice to provide helper method , enrich query object to be able to chain the Queries.