I have a custom _all fields (content), the values of multiple fields are copied into this field (content) .
mapping:
"content": {
"type": "text",
"store": true,
"term_vector": "with_positions_offsets",
}
In the case where there is a matching fragment to highlight, it returns a snippet of text. But In the case where there is no matching fragment to highlight, I want return a snippet of text from the beginning of the field. But it returns nothing.
Search:
"content": {
"fragment_size" : 150,
"number_of_fragments" : 2,
"no_match_size": 250,
"type": "fvh"
}
This happens when I copy more than one field to content. It works good when only one field is copied to content. I do not use any analyser.
How can I solve this problem ?