Elastic: "[match] analyzer [synonymAnalyzer] not found"

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

It’s an known bug and will be fixed in next release.

https://docs.litium.com/support/bugs/bug_details?id=50010

So it should work if i add the pingback string and rebuild the index?

Yes, that should work.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.