Is there any way to get last element of multivalued field in solr. I want to run a query with search string present as the last element of multivalued field.Help would be really appreciated.
Asked
Active
Viewed 205 times
0
-
Do you mean that you want to *search* only on the last element of the multivalued field? – David Faber Jan 08 '15 at 03:47
1 Answers
0
The easiest thing would be to use UpdateRequestProcessor chain to copy only the last value into the dedicated field and search against that. You can use LastFieldValueUpdateProcessorFactory for that.

Alexandre Rafalovitch
- 9,709
- 1
- 24
- 27