AnswerBun.com

For SharePoint Search Server Express 2010, Why is Rank Returned from Scope() Always Default (100000000)

Stack Overflow Asked on January 5, 2022

SharePoint Search Server Express 2010, Why is Rank Returned from Scope() Always Default (100000000)

I need to know what I need to do differently in terms of configuration changes, etc. within Search Server Express to have this rank issue resolved.

I have crawled a very large number of files using Search Server Express 2010 and when I select rank from Scope using QueryText (for a given search term), I always get the same rank for all returned items, 100000000.

Because of this, order by rank makes no difference. I need the rank to reflect the number of occurrences of the particular term in each file. Rank used to vary (and be correct) when SSE 2010 was installed on Windows Server 2008 R2, but with Windows Server 2016 the rank is always 100000000.

For example,
If File A has "oil" 1 time, File B has "oil" 3 times and File C has "oil" 4 times, the current order returned from the select below, with the order by, is:
File A, File B, File C
(because that is the order in which the files were crawled, and each file unfortunately returns the rank of 100000000 for each file).
The order I need to have returned, with the order by, is:
File C, File B, File A
(with File C having a larger rank than B, and B having a larger rank than A, so that the order by rank can order things correctly).

I call method Query of the built in SOAP Service that comes with Search Server Express 2010 (_vti_bin/search.asmx) and pass the following:

<QueryPacket><Query><QueryId /><OriginatorId /><Context>
<QueryText type='MSSQLFT' language='" + language + "'>
   SELECT rank, Filename, path, description FROM SCOPE()
   where (path like 'file://" + RepositoryFiles + "/%.xml')
    and (contains(All, '"oil*"')) 
    order by rank desc
 </QueryText>
 </Context>
 <EnableStemming>true</EnableStemming>
</Query></QueryPacket>;

I very much appreciate insight that can lead to a resolution of this issue.

Add your own answers!

Related Questions

Getting date for calculation

1  Asked on December 12, 2020 by faizan-gauhar

   

Map bash table output to array

1  Asked on December 12, 2020 by jeroen-smink

         

How Can i fetch all data with average rating in laravel

1  Asked on December 12, 2020 by nadun-silva

         

Multiple conditions in SELECT Statement

1  Asked on December 12, 2020 by rick-smith

 

Set up different CORS rules based on the endpoint in Django

2  Asked on December 12, 2020 by augusto-samam-barrientos

     

Angular check and uncheck boxes from data

1  Asked on December 12, 2020 by mg91

 

how do i switch a condition based on bind variable

1  Asked on December 12, 2020 by vivek

   

Comparing two triangles in C (3, 3, 4 and 4, 3, 3 for example)

3  Asked on December 12, 2020 by etoile

 

Grouping unique values with low value counts

1  Asked on December 12, 2020 by yupper

 

Why should I press ENTER before CTRL+D to indicate an EOF to stdin?

1  Asked on December 11, 2020 by name-null

         

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP