Whether this is doable is going to depend on what you mean by "match[ing]
documents according to criteria X". Can you give an example?

Le ven. 9 févr. 2018 à 14:47, Dominik Safaric <dominiksafa...@gmail.com> a
écrit :

> Hi,
> I am intending to implement a custom Query using Lucene 6.x and due to the
> lack of documentation concerned with a particular topic I have the
> following questions.
> The query is expected to implement a two-phase search, in the sense that
> during the first run it matches documents according to criteria X, whereas
> during the later according to criteria Y of another document field. Can
> this be accomplished by using the TwoPhaseIterator?
> Secondly, the query as expressed through the API will not specify a
> specific query field, but instead of a field that stores an array of
> objects. From an implementation point of view, can I using the LeafReader
> retrieve an object that would map to a Java Map, which I can later use for
> accessing a certain field within the object? Of is it perhaps more
> advisable to get the document instance using the LeafReader's
> getDocument(int docID) function, and then load particular? I'm afraid that
> might hurt the performance in overall because the documents would need to
> be loaded from disk.
> Thanks in advance,
> Dominik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to