Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Minimum score of returned item

$
0
0

Hi.

I was unable to find any information on how to do this, or if it is even possible.

Anyway. Given the query FindClient.UnifiedSearchFor("Christmas tree") you could expect results containing "christmas", "tree", and possibly even "christ". They all receive different scores based on how good the match was. So if i have content explicitly about christmas trees it would receive a great score and end up at the top of the search. A page about "Our lord Jesus Christ" will receive less and end up further down the result set.

Lets say the best match got a score of 6, and the worst match got a score of 0.1. What I would want to be able to do is to tell my query that i want no hits worse than .5 in score difference compared to the best hit. Or at the very least. I want no hits with less than a score of 1. How would I go about doing this?

My real life problem is that when we search our site for a person, that person shows up on the top. But that persons name is comprised of words and part of words that match totally irrelevant article content which will also show up without having any real relevance to the person the user searched for.

//Martin


Viewing all articles
Browse latest Browse all 6894

Trending Articles