Limiting / Filtering multivalue fields in Solr
问题 Is there a way to limit, or filter, the returned text of a multivalued field in Solr? Given the following document structure in Solr: ... <doc> <str name="title">example</str> <arr name="foo"> <str>bar1</str> <str>bar2</str> <str>bar3</str> <str>bar4</str> <str>bar5</str> <str>bar6</str> </arr> </doc> ... I'd like to limit the response to only show 1 of the "foo" values based on a Filter Query request. So for example, the query: select/?q=example&fq=foo:bar2` I would want a response of: ...