Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Convert FullTextSqlQuery into QueryText for SharePoint 2013 search

$
0
0

Hello experts,

I want a quick assistance on converting FullTextSqlQuery into regular querytext as its depreciated in SP 2013. Will you please help?

myQuery.QueryText = "SELECT FileName, Path, HitHighlightedSummary FROM SCOPE() WHERE \"scope\" = 'custSite' AND (FREETEXT(defaultproperties, '" + sAny1 + "') "
 + radioSearchOrdinal1.SelectedValue + " FREETEXT(defaultproperties, '" + sAny2 + "')) "
 + radioSearchOrdinal2.SelectedValue + " (FREETEXT(defaultproperties, '" + sAll1 + "') "
 + radioSearchOrdinal3.SelectedValue + " FREETEXT(defaultproperties, '" + sAll2 + "'))";  

Also, is there a tool where I can use to convert this sql query into querytext?

Many thanks

Shri


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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