0

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.

user199354
  • 505
  • 1
  • 5
  • 17

1 Answers1

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