Boost Smart Search

Tim Schmidt asked on October 23, 2014 22:56

First off, I am new to Kentico, so please forgive me for anything stupid.

I am trying to modify the index/smart search. I would like to search and have it match on a Document Type field before anything or boost its relevancy score. For example:
Search for: D310
Results: D310S - n-Dodecyl-β-D-Maltopyranoside, Sol-Grade

D310T - n-Dodecyl-d25-β-D-Maltopyranoside

D310A - n-Dodecyl-β-D-Maltopyranoside, Anagrade

D310HA - n-Dodecyl-α-D-Maltopyranoside, Anagrade

D310LA - n-Dodecyl-β-D-Maltopyranoside, Anagrade

D310 - n-Dodecyl-β-D-Maltopyranoside, Anagrade

Detergents_0514v1

Everything before the "-" is the ProductRoot. If I do a search for ProductRoot:D310 I get everything except "Detergents_0514v1", and the results are in alphabetical order, except D310 is last not first. I would expect D310 to be first followed by D310A, D310HA, etc... Any help I can get on getting this to work would be very helpful.

Thanks, Tim

Recent Answers


Yehuda Lando answered on October 24, 2014 19:38

Hard to say. I would suggest using Luke and try different queries to see what fits

0 votesVote for this answer Mark as a Correct answer

Zdeněk Cetkovský answered on December 6, 2014 12:55

Hi,

Using Luke to find smart search query syntax for the desired result set is one suitable way, definitely useful. Also, your results with field search could be now ordered differently than alphabetically ascending. You can change that by setting the ordering condition in smart search results (the default is considering score first) or using smart search order filters It is also possible to boost terms in Lucene query syntax.

Hope this can still help.

Regards,

Zdenek

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.