Hi,
I was given a task to investigate whether it is possible to return Lucene field
name when a query is matched.
At the moment our application returns the usual matched docs, but the new
requirement would be to also know which field matched the query (e.g. found in
title, header, etc.).
We
igate whether it is possible to return Lucene
> field name when a query is matched.
> At the moment our application returns the usual matched docs, but the new
> requirement would be to also know which field matched the query (e.g. found
> in title, header, etc.).
> We use Lucene 3.0.3
out by query[title], query[content], query[header].
> But you'd have to the merge the results. Maybe there's a collector for this.
>
> 2011/10/20 damian2b
>
>> Hi,
>>
>> I was given a task to investigate whether it is possible to return Lucene
>> fiel
; > Evidently you can find out by query[title], query[content],
> query[header].
> > But you'd have to the merge the results. Maybe there's a collector for
> this.
> >
> > 2011/10/20 damian2b
> >
> >> Hi,
> >>
> >> I was
ai Caraman
>> wrote:
>> > So now you have something like query[title,content,header,...].
>> > Evidently you can find out by query[title], query[content],
>> query[header].
>> > But you'd have to the merge the results. Maybe there's a collector