add weight to search feilds

lawrence whittemore asked on May 15, 2015 16:18

Is there a way to add weight to different fields in the search so that keywords in those fields would make the document rank higher? A client would like the document name to have more weight than other fields.

Recent Answers


Charles Matvchuk answered on May 15, 2015 16:30

If I recall correctly it was on a future enhancement list a year or so ago, not sure if that functionality was added as of yet. Can you modify the index to suit your needs ?

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on May 15, 2015 16:37

I'm not sure how to modify the index. If it's not available we can probably come up with an alternate solution to meet the client needs.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on May 15, 2015 17:05

Trevor Fayas answered on August 10, 2015 21:03

Event easier, in Lucene.net you can boost a value by adding "^#" to the search field

Ex: ProductColor('Red')^2 ProductSize('Small') ProductShape('Circle')^.5

Would result in Product Color "Red" Matches being 2x heavier in weight than the size, and shape would be half the weight as Size.

We just modified the Smart Search Filter, added a "Boost" Field to the web part, and then appended "^"+Boost to the drop down values. Worked like a charm!

0 votesVote for this answer Mark as a Correct answer

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