I have some pdf file indexed and I am using simple_query_string in order to use the very nice features of +, -, | etc.
So here is my search script:
[ 'stored_fields' => ['name', 'author', 'editor', 'url'], 'query' => [ 'simple_query_string' => [ 'query'=> $search_text, 'fields'=> ['attachment.content^5','_all'], 'default_operator'=> 'and', ] ], 'highlight' => [ 'number_of_fragments' => $fragnumber, 'fragment_size' => $fragsize, 'pre_tags' => [ "<em><mark>" ], 'post_tags' => [ "</mark></em>" ], 'fields' => [ 'attachment.content' => new \stdClass() ] ]
The example in the docs it uses double quotes (") in the query.
So, when I search for a term without double quotes, as of: paulo de tarso it brings the results acoordingly with the hightlights.
If I use the double quotes as of: "paulo de tarso" it does not show the highlights....
Has anyone faced this same issue?