AI OnAI Off
What kind of index are you using locally?
Synonyms does not work on demo indexes, which is kind of stupid if you ask me. 😏
Yeah, I'm using a demo index. We have a "normal" index available in our test environment, so gonna try that one. Thanks!
And agree with the "stupid" part ![]()
There is a bug that keeps you from using UsingSynonyms() before any InField() call. Bug FIND-2406 currently not public.
Try
query = query.For(searchTerm, q =>
{
q.Query = searchTerm;
})
.InField(x => x.ItemName)
.AndInField(x => x.Code)
.AndInField(x => x.ParentCategoryNames)
.AndInField(x => x.ItemTradeMarkName)
.AndInField(x => x.ItemPrimaryVendorId)
.AndInField(x => x.ItemPc1VendorsitemId)
.AndInField(x => x.ItemEOProducer)
//.AndInField(x => x.ItemIngredience) //kommentert ut; SG-3276
.AndInField(x => x.ItemPc2AdvertisingText)
.UsingSynonyms();
if (trackSearchTerm)
{
query = query.Track();
}
I am not aware of any restrictions on synonyms using demo indices.
UsingSynonyms doesnt work. Returns 0 results. Anything wrong with my syntax? I have tried appplying UsingSynonyms at the end of my query as well, same result.
We are not using Unifiedsearch by the way. We are searching for a specified.
The query also adds in Boostmatching and Facets.
Version: 12.2.0