lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: Lucene custom Query - efficiently and compare retrieve multiple document fields
Date Mon, 12 Feb 2018 07:56:16 GMT
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 <dominiksafaric@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message