I have a multivalued field that I am searching on. In the 'result' area the field is returned as an array of strings. In the highlighting section the array elements are combined into a single string with no delimiter. Do I have to parse the highlighting based on the results section? It seems like highlighting should return an array of strings.
This is what I get back:
<result name="response" numFound="1" start="0">
<doc>
<arr name="NameList">
<str>Beacher, Mike</str>
<str>Cally, Karl T.</str>
<str>Amerson, Judy</str>
</arr>
</doc>
</result>
<lst name="highlighting">
<lst name="my_doc">
<arr name="NameList">
<str>Beacher, MikeCally, Karl T.<em>Amerson, Judy</em>
</str>
</arr>
</lst>
</lst>
I was expecting the highlighting result to look something like this:
<arr name="NameList">
<str>Beacher, Mike</str>
<str>Cally, Karl T.</str>
<str><em>Amerson, Judy</em></str>
</arr>
So far I haven't found any questions about this - unless I am just bad at searching. :)
Solved it.
This functionality is now available using the preserveMulti
parameter in Solr 4.1.
Discussed here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With