Presenter:Steve Hansen
This video shows how to perform a keyword search against the Microsoft Office SharePoint Server Enterprise Search Web service from a Word add-in.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Private and escapism of office out of town this video is hardware integrated enterprise search from Microsoft Office servlet server 2007 into my client application to demonstrate them integrate a word to thousands of an ad in what is at in the way to search via a search using the query Web service and search for the selected word person will do is add a Web reference to add a reference to the query Web service the services located at the name of your server in the DTI and it is simply called search ES MX
Minute 1
Facility in my Web reference hair loss search NL to add a goes forward with some going to use to display the result of the search of the swivels formals is at a static couple of things personal ad is a data grid so when you use any enterprise search query Web service you can either return a dataset or an XML string containing the results in this example never return a dataset soul and a data grid
Minute 2
Minimum to add a button which is simply going to close the form and then set some of the properties here than what Teresa even in this one to when you double click on an item in the results could I d like to display the two starters as of Internet Explorer and display the page containing the
Minute 3
And he pays that you double clicked on also the other label to display the full texts associated with the selected cell in the data grid shouldn t just be easier to read as I demonstrated results rather than program and waiting for the tool to choose the source of the late logs generated whole of events for Star mouse enter and so miles leave next year I m going to create a private variable which is a multi keyword that I want to perform the search and upgrade a public property for the keyword
Minute 4
And we need to locate later just going to close the form and then resell a sleeve of the list that attacks the label to an empty string and then also hide the label for to actually search for the keyword
Minute 5
Or integrated public procedure called Moss urged them to instantiate an instance of my query Web service and the mixing a new me to do is build my query string the query string is an XML fragment wounds complies to the Microsoft search query schema for enterprise search so the roots of this is called a query packet than they need a
Minute 6
Query node and the supported formats known and any node so for the format they use your R N Microsoft search response document in the next the query text node in the use of the US language and then for the tie and then use string the other choice for type
Minute 7
Is MS SQL FT so that would be a SQL fulltext search will use the string type however which this is a simple keyword search anonymity that I m the keyword associated with the current instance of the form in the night that I need to close up the rest of my nodes in a query string than to actually call the query or execute query and asked me to pass on some credentials to the query Web service minimum and declare any results at us at the news the query acts that the
Minute 8
The difference between query and query acts as that query executed as a dataset while query returns a string containing the XML of the results now that I ve got the results and is executed by query that is the result of the data source of my data grid to the first table in my dataset and from the Celts will attempt off since I ll be using a label to display that information with us to some basic formatting to my datagram that is really for doing
Minute 9
In a simple search on a keyword you can use the SQL fulltext type to do more complex searches saw go ahead and implement my cell Miles and her event and to set the text of little one equal to the text of the select install of the cell that the mouse is entering and I will set the visit visible property of the label to true for these are the click event would like to do here
Minute 10
News bring out Internet Explorer and navigate to the leash that he search results found on one of the properties returned in my results as as the path in this pass the value of path contains the URL of the page that the item was found on some will use the start of the pass in the euro at all in a
Minute 11
Launch Internet Explorer wiki page given by my URL as the default page will fix my query string here is of a funny thing to do is provide a way to show the swindles form which will execute my search so great a search selected procedure here instantiate any instance of my form set the key word equal to the selected text
Minute 12
And then install the form finally I ll add a and to neither does then when you click the button I will call my search selected procedure
Minute 13
Is changing everything from a button to a button sedan ex into a lot of other one which calls search select an and I will give it a shot so the test site unamusing here has a lot of information related to bicycles inviting so I ll bring up the application and through the Word by hand must be a problem here
Minute 14
Said today results in the MIDI output a CFA exception of system Web services protocols so the exception similar to check the query string or a looks like I m missing a closing bracket will try that again about those are numerous fields that come back with your search results as a cover over the various fields here you can see what the value is
Minute 15
And the label will be results that if I double click on one of the roads in my results that it s going to bring up the page given by the path column in my results that you can configure the results or the fields a comeback in the results that which is very helpful if you re using researching on a business data catalog application that concludes a study of how to use the enterprise search web service and your client application thanks for watching every day
Click here to go to original video page
Tuesday, June 3, 2008
Video: How Do I: Use MOSS Enterprise Search in a Client Application?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment