Hi All,
I am having few doubts regarding WDS querying through AQS.
Is there a way to get the previewURL so that we can explicitly get the content with that url
Can we get results in the form of pagination? (ie from 10-20)
- Instead of counting in while loop, Do we have any way to get total number of search hits?
Sample code that I am trying for querying WDS:
CSearchManager srchMngr = new CSearchManager();
CSearchCatalogManager srchCatMngr = srchMngr.GetCatalog("SystemIndex");
CSearchQueryHelper srchQueryHelper = srchCatMngr.GetQueryHelper(); srchQueryHelper.QuerySelectColumns = @"System.FileName";
string sqlQuery = srchQueryHelper.GenerateSQLFromUserQuery("hi");
OleDbConnection conn = new OleDbConnection(srchQueryHelper.ConnectionString);
conn.Open(); // Execute the query
OleDbCommand cmd = new OleDbCommand(sqlQuery, conn);
OleDbDataReader srchResult = cmd.ExecuteReader();
while (srchResult.Read()) { . . . . }
It will be really great if I get the solution
Thanks in advance.
-karthik