Hello!
Is there a way to do wildcard search in phrases?
I have a term “blood disorder” and my search query is “blo order”. I would like to see “blood disorder” in the result. Any ideas of how to do this?
I tried the following and it didn’t work:
{
index: 'fts',
"wildcard": {
"query": "blo* *orders",
"path": "Text",
allowAnalyzedField:true
}
}
Snippet of the analyzer:
"Text": {
"analyzer": "lucene.standard",
"multi": {
"mySecondaryAnalyzer": {
"analyzer": "lucene.english",
"type": "string"
},
"wildcardAnalyzer": {
"analyzer": "lucene.keyword",
"type": "string"
}
},
"type": "string"
}
I have the lucene.keyword and standard analyzer on the field that has terms.
Thanks,
Supriya