We are using phrase query to search for exact phrases but it is not working correctly. Below there is an example of document in the index.
The field transcript_segments.text
is searchable and advancedSyntax
is enabled.
When looking for the word nostalgic
it returns results but when looking for "nostalgic for me"
it doesn’t (see example below). However if a look for nostalgic for me
(without the quotes) it works but it also returns other documents with not exact phrase.
There are other phrases where it works but for many it doesn’t work at all.
Is there any other configuration I should know to make phrase queries to work?
{
"call_id": "...",
"name": "...",
"transcript_segments": [
{
"start_offset_seconds": 1,
"speaker": "...",
"text": "I don't know how robust it is.",
"speaker_tag": "2"
},
{
"start_offset_seconds": 2,
"speaker": "...",
"text": "Cool. Yeah. I know that's a really specific.",
"speaker_tag": "1"
},
{
"start_offset_seconds": 3,
"speaker": "...",
"text": "That's something I'm very familiar with and fun kind of nostalgic for me, but I'm also curious.",
"speaker_tag": "2"
}
]
}