You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Mark , N" <ni...@gmail.com> on 2012/08/03 11:51:05 UTC
search hit on multivalued fields
I have a multivalued field "Tex" which is indexed , for example :
F1: some value
F2: some value
Text = ( content of f1,f2)
When user search , I am checking only a "Text" field but i would also need
to display to users which Field ( F1 or F2 ) resulted the search hit
Is it possible in SOLR ?
--
Thanks,
*Nipen Mark *
Re: search hit on multivalued fields
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Mark,
It's not clear what are you want to do. Let's say you requested rows=100
and found 1000 docs. What do you need to show in addition to search result?
- matched field on every of 100 snippets
- or "400 with F1 and 600 with F2"
- or what
On Fri, Aug 3, 2012 at 6:41 PM, Jack Krupansky <ja...@basetechnology.com>wrote:
> You can include the fields in your "fl" list and then check those field
> values explicitly in the client, or you could add &debugQuery=true to your
> request and check for which field the term matched in. The latter requires
> that you have the analyzed term (or check for closest matching term).
>
> -- Jack Krupansky
>
> -----Original Message----- From: Mark , N
> Sent: Friday, August 03, 2012 5:51 AM
> To: solr-user@lucene.apache.org
> Subject: search hit on multivalued fields
>
>
> I have a multivalued field "Tex" which is indexed , for example :
>
> F1: some value
> F2: some value
> Text = ( content of f1,f2)
>
> When user search , I am checking only a "Text" field but i would also need
> to display to users which Field ( F1 or F2 ) resulted the search hit
> Is it possible in SOLR ?
>
>
> --
> Thanks,
>
> *Nipen Mark *
>
--
Sincerely yours
Mikhail Khludnev
Tech Lead
Grid Dynamics
<http://www.griddynamics.com>
<mk...@griddynamics.com>
Re: search hit on multivalued fields
Posted by Jack Krupansky <ja...@basetechnology.com>.
You can include the fields in your "fl" list and then check those field
values explicitly in the client, or you could add &debugQuery=true to your
request and check for which field the term matched in. The latter requires
that you have the analyzed term (or check for closest matching term).
-- Jack Krupansky
-----Original Message-----
From: Mark , N
Sent: Friday, August 03, 2012 5:51 AM
To: solr-user@lucene.apache.org
Subject: search hit on multivalued fields
I have a multivalued field "Tex" which is indexed , for example :
F1: some value
F2: some value
Text = ( content of f1,f2)
When user search , I am checking only a "Text" field but i would also need
to display to users which Field ( F1 or F2 ) resulted the search hit
Is it possible in SOLR ?
--
Thanks,
*Nipen Mark *
Re: search hit on multivalued fields
Posted by Erick Erickson <er...@gmail.com>.
What about just using highlighting and display both fields?
Best
Erick
On Fri, Aug 3, 2012 at 5:51 AM, Mark , N <ni...@gmail.com> wrote:
> I have a multivalued field "Tex" which is indexed , for example :
>
> F1: some value
> F2: some value
> Text = ( content of f1,f2)
>
> When user search , I am checking only a "Text" field but i would also need
> to display to users which Field ( F1 or F2 ) resulted the search hit
> Is it possible in SOLR ?
>
>
> --
> Thanks,
>
> *Nipen Mark *