lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gindin <vgin...@detectum.com>
Subject Re: Query in a doc context
Date Thu, 14 Dec 2017 14:53:16 GMT
Thanks Mikhail

Could you describe your sentences in more detail?

Vadim

On Thu, Dec 14, 2017 at 7:08 PM, Mikhail Khludnev <mkhl@apache.org> wrote:

> Hello, Vadim.
>
> Please find inline.
>
> On Thu, Dec 14, 2017 at 11:43 AM, Vadim Gindin <vgindin@detectum.com>
> wrote:
>
> > Hi all.
> >
> > As I can understand. All Queries (or most of them?) are single-field
> > oriented. They may implement different search/score logic, but they are
> > intended for a single field. For example, simple TermQuery or
> PhraseQuery.
> > If I need to implement the search through different fields I should use
> > BooleanQuery to combine several single-field queries.
> >
> > Did I understand that right?
> >
>
> Absolutely
>
>
> >
> > What is an appropriate way to implement a document-wise Query?
> >
> > 1. DisjunctionScorer.getChildren() painful doc-at-time handling
> 2. there is a quite promising idea is to amend buffer in term-at-time
> BooleanScorer to track every doc-term hit.
> 3. probably it can be done by copying all terms into single field, but
> storing original field in payloads, but it's reaalllly slooooww
>
>
> > I need to have the ability to combine fields matching of one document and
> > analyze it. Particularly - to count whether all query terms are matched
> (to
> > one field or to different fields). I need to be able to fetch
> corresponding
> > information: what terms are matched to what fields and so on.
> >
> >
> > It seems, that BooleanQuery/BooleanScorer is not a good place to
> accumulate
> > some information from a child Queries/Scorers.
> >
>
> --
> Sincerely yours
> Mikhail Khludnev
>

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