Sharepoint Search Property Weighting

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 08:22:51

The property only positively affects the ranking score when you search for keywords present in the property. For any other query the weight has no effect whatsoever! E.g. when searching for the keywords "SharePoint Search", the title property weight ensures that the ranking score is boosted for documents having these keywords in the title. But documents without any of these keywords in the title are not boosted by the title weight. This applies to all managed properties of type text.

Chaging the weighth of a property should not need a recrawl, just a reset of the search service.

Found this on the internet:

In addition to setting the weight of the Managed Property, the Crawled Property that is mapped to the Managed Property must also have the “Include values for this property in the search index” check box set on.

Edit: Found it here: Larry Kuhn's blog

Have you tried using only weights in the 0 to 1 range? For example set all the other property weights to 0.2 and set keywords to 0.8. I had a little trouble with Lucene along these lines, and it was magnitude related.

Also if it's never adding hits in that property field to the results (try adding an xyzzy keyword or something and search for it) then it's probably not weight related at all, but rather related to whether the keywords are considered for your search.

Would I be correct in assuming the .update() call is being done at the end of main()? If not, try that, if so then make sure the program is running. I would also assume that the strPropertyName is the one you want. Other than that, I can't really help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!