简体   繁体   English

Sharepoint 搜索属性权重

[英]Sharepoint Search Property Weighting

I'm using the code listed here:我正在使用此处列出的代码:

http://msdn.microsoft.com/en-us/library/ms553069.aspx http://msdn.microsoft.com/en-us/library/ms553069.aspx

With an additional line added as a call to.update() after the property is set in order to save the changes, but even with a weight of 10,000 the search results for my property are still at the bottom, particularly below title.在设置属性后添加了一行调用 to.update() 以保存更改,但即使权重为 10,000,我的属性的搜索结果仍位于底部,尤其是在标题下方。 Is there some other things that need to be done in order to get the weighting to propogate?为了传播权重,是否还需要做一些其他事情?

I've also tried setting the title, author, and filename to 0, setting the property (keywords) to 9999, and setting length normalization of the property to 0. The results shift a bit, but searches with keywords that match the property still do not match.我还尝试将标题、作者和文件名设置为 0,将属性(关键字)设置为 9999,并将属性的长度规范化设置为 0。结果略有变化,但仍然使用与属性匹配的关键字进行搜索不匹配。

All tests were done with a full crawl afterwards, reset IIS, and recycle the shared services app pool.之后所有测试均通过完整爬网完成,重置 IIS,并回收共享服务应用程序池。

I can give you any extra information you might request.我可以为您提供您可能需要的任何额外信息。

Thanks, Stefan谢谢,斯特凡

UPDATE (6-19-09): Added a bounty of 500 to this.更新 (6-19-09):为此增加了 500 的赏金。 Very little information about this feature available online, apparently a good answer would a huge service to the inte.net community.在线提供的关于此功能的信息很少,显然,一个好的答案将对 inte.net 社区提供巨大的服务。 It'd probably save me a week too:)它可能也会为我节省一个星期:)

UPDATE 2 (6-19-09): The schema is essentially this: OOB sharepoint document content type with added text field "Keywords".更新 2 (6-19-09):架构本质上是这样的:OOB sharepoint 文档内容类型,添加了文本字段“关键字”。 Managed property attached to ows_keywords(Text).附加到 ows_keywords(Text) 的托管属性。

UPDATE 3 (6-19-09): Sharepoint Search Bench from Codeplex has helped the search a lot.更新 3 (6-19-09):Sharepoint Codeplex 的 Search Bench 对搜索有很大帮助。

UPDATE 4 (6-19-09): I've arrived at a solution that involves creating many (5 right now) more managed properties with the same crawled property.更新 4 (6-19-09):我已经找到了一个解决方案,该解决方案涉及使用相同的已爬网属性创建许多(现在有 5 个)更多托管属性。 Each weight is set to something unusual (like 9999).每个权重都设置为不寻常的值(如 9999)。 These do enough to buoy the keyword results to the top.这些足以将关键字结果提升到顶部。 Less than ideal though.虽然不太理想。 Still looking for a solution.仍在寻找解决方案。

The solution in Update 4 is what I ended up with. Update 4 中的解决方案是我最终得到的。 As Lars commented, the search is not very flexible and despite offering tweaks to the property weightings, the effect is not always what you would expect.正如 Lars 评论的那样,搜索不是很灵活,尽管对属性权重进行了调整,但效果并不总是您所期望的。

Chaging the weighth of a property should not need a recrawl, just a reset of the search service.更改属性的权重不需要重新抓取,只需重置搜索服务即可。

Found this on the inte.net:在互联网上找到这个:

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编辑:在这里找到它: Larry Kuhn 的博客

Have you tried using only weights in the 0 to 1 range?您是否尝试过仅使用 0 到 1 范围内的权重? For example set all the other property weights to 0.2 and set keywords to 0.8.例如,将所有其他属性权重设置为 0.2,并将关键字设置为 0.8。 I had a little trouble with Lucene along these lines, and it was magnitude related.我在这些方面遇到了 Lucene 的小麻烦,它与震级有关。

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.此外,如果它从不在结果中添加该属性字段中的匹配项(尝试添加xyzzy关键字或其他内容并搜索它),那么它可能根本不与权重相关,而是与关键字是否被考虑用于您的搜索有关。

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.对于任何其他查询,权重没有任何影响。 Eg, when searching for the keywords "SharePoint Search".例如,在搜索关键字“SharePoint Search”时。 the title property weight ensures that the ranking score is boosted for documents having these keywords in the title. 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.这适用于文本类型的所有托管属性。

Would I be correct in assuming the.update() call is being done at the end of main()?假设 the.update() 调用是在 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.我还假设 strPropertyName 是您想要的。 Other than that, I can't really help you.除此之外,我真的帮不了你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Sharepoint 2010搜索-自动向QueryString添加属性 - Sharepoint 2010 Search - Auto add property to QueryString 如果缺少属性,则项目不包括SharePoint搜索结果 - Items not included SharePoint search results if a property missing Manager属性不适用于全文搜索(SharePoint 2010) - Manager property is not available for Full Text Search (SharePoint 2010) 如何通过SharePoint搜索获取托管属性的不同值? - How to get distinct values of a managed property through SharePoint search? 应用不同的RowLimit参数时,TotalRows属性显示不同的结果(SharePoint 2013搜索REST和CSOM Api) - TotalRows property shows different results while applying different RowLimit parameter (SharePoint 2013 Search REST and CSOM Api) SharePoint2013-高级搜索属性选择器中的自定义元数据不返回值 - SharePoint2013 - Custom Metadata in Advanced search property picker doesn't return values SharePoint 2013:如何根据文档库上的图章属性筛选搜索文档 - SharePoint 2013: How to filter search documents based on stamp property on document library 如何以编程方式设置SharePoint的网站集搜索中心属性? - How do I programatically set the SharePoint's site collections Search Center property? 共享点搜索按钮自定义 - Sharepoint search button customization Sharepoint搜索关键字 - Sharepoint Search for Keyword
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM