Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Serch List Items

  Asked By: Rey Johnson         Date: Feb 19, 2006      Category: Sharepoint      Views: 344
 

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.

Tagged:      

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].