Hi, everyone,
I got a mysterium by using a phrase suggest on multiple indices.
I try to explain what is happen.
This suggest code works fine for 4 different indices with 3 different types.
'suggest' => [
'did-you-mean' => [
'text' => $query,
'phrase' => [
'max_errors' => 4,
'size' => 1,
'analyzer' => 'analyzer_did_you_mean',
'confidence' => 1.5,
'direct_generator' => [
[
'field' => 'did_you_mean',
'suggest_mode' => 'missing'
]
],
'field' => 'did_you_mean'
]
]
],
I added a 5th index, which contains a positive list of words (like brands or locations).
After i added this index, the suggester returning only results of this new index. it ignores the other 4.
I tried the following:
- give all indizes the same structure
- give all indizes the same type
- put the data direct in the did_you_mean instead copy_to: 'did_you_mean'
- used different ids
- used different suggest_mode
It is running on ES 2.4.
I cant find the resaon for this behavior, maybe someone has an idea.
If further information are needed, I will try to deliver.
Thanks.