You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucy.apache.org by Nils Diewald <ak...@batteriehuhn.de> on 2012/11/08 22:05:11 UTC
[lucy-user] Matches with multiple fields
Hi!
In case I have a query search on multiple fulltext fields in Lucy - is
there a way to see (in the Hit-Object) which field had a match of the
query and which one hadn't?
The use case are documents with multiple versions. I want to store all
versions in one document with one field per version. After a search I
want to return the documents with the best matches (as normal) and also
show briefly, in which version of these documents the query term did match.
With best regards,
Nils
Re: [lucy-user] Matches with multiple fields
Posted by Nils Diewald <ak...@batteriehuhn.de>.
Perfect! Thank you very much - this did the Job!
With best regards,
Nils
On 08.11.2012 22:25, Peter Karman wrote:
> On 11/8/12 3:05 PM, Nils Diewald wrote:
>> Hi!
>>
>> In case I have a query search on multiple fulltext fields in Lucy - is
>> there a way to see (in the Hit-Object) which field had a match of the
>> query and which one hadn't?
>>
>
> no.
>
> but see http://markmail.org/message/xoqwxofwphlowqxf
>
> and the implementation in
> https://metacpan.org/module/SWISH::Prog::Lucy::Results
>
>
>
>
Re: [lucy-user] Matches with multiple fields
Posted by Peter Karman <pe...@peknet.com>.
On 11/8/12 3:05 PM, Nils Diewald wrote:
> Hi!
>
> In case I have a query search on multiple fulltext fields in Lucy - is
> there a way to see (in the Hit-Object) which field had a match of the
> query and which one hadn't?
>
no.
but see http://markmail.org/message/xoqwxofwphlowqxf
and the implementation in
https://metacpan.org/module/SWISH::Prog::Lucy::Results
--
Peter Karman . http://peknet.com/ . peter@peknet.com