Creating Search-Based Solutions with SharePoint 2010 (MDV03) – my notes

SharePoint Connections 2010, Den Haag, 28 September 2010

Session: Creating Search-Based Solutions with SharePoint 2010 (MDV03)

Speaker: SCOT HILLIER

  • Great slide on the Search Architecture (get the slides)
  • Content source->iFilters->.NET Assembly Connector-> Index Engine
    • The big news is that the indexer uses a .NET assembly connector to access exernal data (a new .NET assembly connector can be easily written by a developer)
    • There is now an architecture support for search federation
    • Relevancy:
      • Ranking vs Sorting
      • Authoritative Pages is a primary way to affect ranking
      • In SharePoint 2010 we can create a specific Custom Ranking Model
      • Using Custom Ranking Models
        • Define Weights & Normalizations through an XML file specifying:
          • Query independent elements (e.g. all documents ending with .docx be pushed at the top of search results)
          • Query dependent elements (e.g. all queries beginning with ‘a’)
  • Define Managed properties and explicitly activate it for use.
  • Install the ranking Model
  • Update the Core Results Web part to use this Ranking model (you have to define the ranking model ID in this web part…if no ID specified, the one of SharePoint by default).
  • SharePoint 2010 has 5 ranking models defined. The one by default is general for all searches and the rest of the models apply especially to people search. The IDs of these ranking models are not visible through the UI – you have to export them and check the GUIDs in XML.
  • When SharePoint query does not contain any text but only a managed property, the Search skips the ranking of search results  (the ranking model is not used) and the search results are simply displayed but not sorted using the ranking model. (e.g. put in the search box “Rating>0”, given that AverageRating is a manged property) As soon as a text is included in the query, the ranking model is taken into consideration before displaying the search results (e.g. search for “a* Rating>0”)
  • In SharePoint 2010 we can inherit the CoreResultsWebPart class!!! And build our own custom CoreResultsWebPart class
  • In order to help user you might wish to use separate pages by scope (tabs on top of the search box)
  • INTERESTING use case: a unique place on your SharePoint site where the user can check all tasks he’s assigned to. Instead of building a CAML complicated web part/solution, you could use the search engine and query for all “AssignedTo” properties across your farm (check code in demo).  You can use FullTextQuery Class to process SQL queries. (e.g. show all the latest documents on the portal)
  • Keyword query syntax examples:
    • Lastname:A
    • AverageRating>0
    • Training+isDocument:1
    • Client AND Server
  • A demo of using the keyword query syntax : AZIndex of employees in the directory
  • .NET Assembly connectors
    • It is the WAY we allow the index engine access an external system
    • The fact that anyone can write a .NET assembly connector (choose Business Data Connectivity Model in Visual Studio) gives the opportunity to index practically any existing external system
    • It’s the same ‘piece’ used by the BCS (Business Connectivity Services) to search and access data from external systems
    • Security: Search results trimming vs query time trimming
  • Search queries stay entirely compatible with OpenSearch standard
Advertisements

3 Responses to Creating Search-Based Solutions with SharePoint 2010 (MDV03) – my notes

  1. […] Creating Search-Based Solutions with SharePoint 2010 (MDV03) – my notes […]

  2. Heya just came upon your blog via Google after I typed in,
    “Creating Search-Based Solutions with SharePoint 2010 (MDV03)” or perhaps something
    similar (can’t quite remember exactly). In any case, I’m happy I found it because your subject material
    is exactly what I’m looking for (writing a college paper) and I hope you don’t mind if I collect some material from
    here and I will of course credit you as the source. Thank
    you so much.

  3. Tia says:

    Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something.
    I think that you can do with some pics to drive the message home a bit, but instead of that, this is magnificent
    blog. A great read. I will certainly be back.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: