Unified search - Searching for news return hits on openinghours



I'm implementing unified search and in testing we search for news and it returns hits on openinghours or time related words.

This is in norwegian, so searching for nyhet(news) returns hits like åpningstider(opening hours), tidsbegrensninger(timelimits), tidsrommet(time interval) and so on.

Is this a bug or does it have a logical explanation?


Dec 19, 2017 14:26

Do you have the word nyhet somewhere in the text?

If you set highlightning on, what words does it highlight?

Dec 19, 2017 14:35

I have highlighting set already. It highlights the words I wrote in my first post. I can't see any relevant content in the pages or any relevance between the word news and the highlighted words. 

And all the unrelevant hits appear at the top of the hitlist.

Edited, Dec 19, 2017 14:47

Synonyms or best bets enabled when searching?

Dec 20, 2017 10:23

No, that was what I was thinking about at first. I have removed that.

Dec 20, 2017 11:35

I have done some testing and the result is this:

If searching for nyhet using this code I get an incorrect result:

var query = SearchClient.Instance.UnifiedSearch(lang).For(q).UsingUnifiedWeights().WithAndAsDefaultOperator();
if (!q.Contains('"'))
query = query.UsingSynonyms();

If I comment out this code(not using synonyms if using frases) the result is correct. 

//if (!q.Contains('"'))
//      query = query.UsingSynonyms();

The strange thing is that I have no synonyms added. Is this a bug when using UsingSynonyms()?

Edited, Dec 20, 2017 15:16
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.