Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Indexing Services With Weight.

$
0
0

Dear All,

I am using following query for searching the record with indexing services.

Now I want to search DocTitle but I have to give the weightage. Means DocTitle should search only 40%.

 strQuery1 = "Select Filename,Size,PATH,rank,DocTitle,HitCount,DocTemplate from Scope() where CONTAINS(DocTitle, '\"" + search + "\"') OR CONTAINS('FORMSOF(INFLECTIONAL, \"" + search + "\")') OR FREETEXT(FileName, '" + search + "') OR FREETEXT(Contents, '\"" + search + "\"') order by rank desc";
              

Can anyone please help me how to do this ?

Thanks,

Harish


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>