Sorting fragments returned by hit highlighting

I have documents with multiple content fields which I am getting highlighted fragments from.

The fragments from within the same field are sorted according to score, but the order the fields are returned in is random.

I need a way of sorting fragments globally. Just being able to sort fragments within a field is not useful if I don't know which field contains the best fragment. In practice, this has lead to very poor high highlights being displayed to users... Is there a feature I'm missing or a suggested fix besides consolidating all the fields into one field?

I ended up just using copy_to to consolidate all the relevant fields into one field which can be searched and highlighted on. It works, but the downside is data duplication.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.