Re: Index of Hit in MultiValue fields

2015-05-26 Thread Upayavira
The result that Solr returns is the document, not anything beneath, so no, you cannot do this. You could use highlighting, you could parse the output of explains (debug.explains.structured=true will help) to identify which field triggered the match. Alternatively, you could use block joins. Make

Index of Hit in MultiValue fields

2015-05-26 Thread Rodolfo Zitellini
Dear List, In my schema I have a couple multi value fields and I would need to retrive the index of which one generated a match. For example let's suppose I have a text field like this with three values: MyField: [0] Red [1] Blue [2] Green Searching for Blue gets me the document, but I would

Re: Index of Hit in MultiValue fields

2015-05-26 Thread Alessandro Benedetti
We had a similar problem, when searching we wanted to return the doc, and for the multi-valued field we wanted to show only the value that matched the search. This was used for an advanced auto suggestion. As Upaya specified, Highlighting was the good solution for us. Managing in the UI only the