I should have been more clear with my original post . I dont need this for debugging . This is for production , In the search results I also have to show which keyword/phrase the document is showed in the search result. Further each phrase/term has more details associated with it such as pricing information or details .
On Wed, Mar 13, 2013 at 6:42 PM, Jack Krupansky-2 [via Lucene] < ml-node+s472066n4046987...@n3.nabble.com> wrote: > Add &debugQuery=true to your query and examine the "explain" section, > which > will show the terms/phrases that scored for each document. > > -- Jack Krupansky > > -----Original Message----- > From: mephisto > Sent: Wednesday, March 13, 2013 6:52 AM > To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4046987&i=0> > Subject: Figure out what value was matched in multi valued field > > Hi , > > I have an application where users are tagged with multiple keywords/phrase > . > Depending on the keyword there is additional information specific to the > keyword the document was matched for . > > <arr> > <str>Tooth Whitening</str> > <str>Tooth Dentures</str> > <str>Veneers</str> > </arr> > > I need to be able to figure out which particular value "Tooth whitening" > or > "Tooth dentures" or "veneers" the user was determined as a result and then > further extract more information about it . > > Can this be done in solr ? > > > > -- > View this message in context: > > http://lucene.472066.n3.nabble.com/Figure-out-what-value-was-matched-in-multi-valued-field-tp4046942.html > Sent from the Solr - User mailing list archive at Nabble.com. > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/Figure-out-what-value-was-matched-in-multi-valued-field-tp4046942p4046987.html > To unsubscribe from Figure out what value was matched in multi valued > field, click > here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4046942&code=dmFydW4yazdkY2VAZ21haWwuY29tfDQwNDY5NDJ8LTEwNzkzMzcwMjE=> > . > NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://lucene.472066.n3.nabble.com/Figure-out-what-value-was-matched-in-multi-valued-field-tp4046942p4046988.html Sent from the Solr - User mailing list archive at Nabble.com.