I want to create a webpart for searching list items for different
sites as shown in hirerachy.
PORTAL LEVEL
|
|
V
ROOT LEVEL
|
|
V
SITE 1 , SITE 2 , SITE 3 ..... } --> SEARCH HERE
I am using the query service and getting the results back but the
problem is that it is only returning me the url of list all items
(http://<url>/Lists/Links/AllItems.aspx ) + GUID of list itself only
and i need to show the title as well as description for that
particular element of this list.
Code used for searching is
QueryService query = new QueryService();
query.Credentials = new System.Net.NetworkCredential
(Globals.Username, Globals.Password, Globals.Domain);
query.Url = Globals.SearchServiceUrl;
result = query.Registration(registrationString);
queryString = GetSearchQuery(TANameStr,searchKeyWord);
DataSet ds = query.QueryEx(queryString);
// globals is a class for getting the static values from web.config
//GetSearchQuery creates the query for searching
Is there any other way around by which i can search list items from
different sites except CurrentContextWeb.SearchListItems() method
which only searched item from current web.
Do you know someone who can help? Share a link to this thread on twitter, or facebook.