Free text search is not wokring with elastic, error “[match] analyzer [synonymAnalyzer] not found” do i manually need to activat it somehow`? Or will it only be activated if i enable synonym callback in the web config?
To be clear, i have not added any synonyms, and have not added the callback string but i expect that the plugin code should work anyhow?
if (!string.IsNullOrWhiteSpace(searchQuery.Text))
{
var fuzziness = searchQuery.Text.Length > 2 ? Fuzziness.EditDistance(2) : Fuzziness.Auto;
allQueries.Add((qc.Match(x => x.Field(z => z.Name).Query(searchQuery.Text).Fuzziness(fuzziness).Boost(10).SynonymAnalyzer())
|| qc.Match(x => x.Field(z => z.ArticleNumber).Query(searchQuery.Text.ToLower()).Boost(2).SynonymAnalyzer())
|| qc.Match(x => x.Field(z => z.Content).Query(searchQuery.Text).Fuzziness(fuzziness).SynonymAnalyzer())));
}
??
If i remove the .SynonymAnalyzer() it work fine
Litium version: 7.4