Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Serch List Items

  Asked By: Rey    Date: Feb 19    Category: Sharepoint    Views: 1101

I want to create a webpart for searching list items for different
sites as shown in hirerachy.

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.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Serch List Items Or get search suggestion and latest updates.