Hi folks,
Currently the only way to update a block of documents is by identifying
them with a term and update those documents. However we have a case where
the child documents does not share a same identifier as parent documents,
and to identify the whole block of documents we need to use at least a
disjunction query like: (parentId: xx OR id: xx).
I wonder whether we could add a new API to IndexWriter supporting that? It
seems to me we just need to create a new DeleteQueue node with queries
instead of terms and pass it into internal updates method? Or am I missing
something so that update using query is not obvious?
Thanks
Patrick
Currently the only way to update a block of documents is by identifying
them with a term and update those documents. However we have a case where
the child documents does not share a same identifier as parent documents,
and to identify the whole block of documents we need to use at least a
disjunction query like: (parentId: xx OR id: xx).
I wonder whether we could add a new API to IndexWriter supporting that? It
seems to me we just need to create a new DeleteQueue node with queries
instead of terms and pass it into internal updates method? Or am I missing
something so that update using query is not obvious?
Thanks
Patrick