Hello
I am using following code for search result, i
I am getting errror in following lineFullTextSqlQuery oSearchQuery = new FullTextSqlQuery(SPContext.Current.Site);
oSearchQuery.ResultTypes = ResultType.RelevantResults;
oSearchQuery.RowLimit = 0;
oSearchQuery.EnablePhonetic = true;
oSearchQuery.TrimDuplicates = false;
oSearchQuery.EnableStemming = true;
//string SQL = @"select ID,Title from scope() where FREETEXT(DEFAULTPROPERTIES, '*123*')";
string SQL = @"SELECT Title FROM SCOPE() WHERE scope = 'All Sites' AND CONTAINS(Title, '123')";
oSearchQuery.QueryText = SQL;
oSearchQuery.ResultTypes = ResultType.RelevantResults;
ResultTableCollection searchResults = oSearchQuery.Execute();
ResultTableCollection searchResults = oSearchQuery.Execute();
Please let me know whats wrong I am doing in above code?
Avian