Problem with ranking of search results in SharePoint 2007 if using the CONTAINS predicate

Posted by mythicdawn on Stack Overflow See other posts from Stack Overflow or by mythicdawn
Published on 2010-05-11T10:09:40Z Indexed on 2010/05/11 10:14 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

While writing a front-end for the SharePoint Search web service for work, I did some quick testing with the MOSS Search Tool to make sure things were working right under the hood.

What I found was that queries composed only of CONTAINS predicates (FREETEXT ones were fine) would have a rank of 1000 for any results that were returned. According to the documentation (http://msdn.microsoft.com/en-us/library/ms544086.aspx):

"If the query returns a document because a non–full-text predicate evaluates to TRUE for that document, the rank value is calculated as 1000."

Given that the behaviour I am seeing seems to contradict the documentation, is it the case that all queries that use only the CONTAINS predicate will produce ranking like this?

© Stack Overflow or respective owner

Related posts about sharepoint2007

Related posts about search