Showing posts with label FAST. Show all posts
Showing posts with label FAST. Show all posts

Saturday, December 22, 2012

SharePoint Fast Search2010 Incremental Crawl BCS


  1. You can add these properties to your list methodInstance in bdc file and deploy again. 

      <
    MethodInstance Type="Finder" ReturnParameterName="DocumentReadList" Default="true" Name="DocumentReadList" DefaultDisplayName="ProductDocument Read List">
             <Properties>
           <Property Name="LastModifiedTimeStampField" Type="System.String">YourModifiedDateField</Property>
      </Properties>
      </MethodInstances>
    For IdEnumerator set __BdcLastModifiedTimestamp Property

     

      <Properties>
        <Property Name="__BdcLastModifiedTimestamp" Type="System.String">LastModifiedOn</Property>
      </Properties>
     

      1. You can add these properties to your list method of entity using PowerShell:
        $entity = Get-SPBusinessDataCatalogMetadataObject  –BdcObjectType “Entity” –Name “EntityName” –Namespace “ModelNameSpace” -ServiceContext adminurl
        $methodinstance = $entity.MethodInstances | where {$_.Name –eq “ReadListName”}
        $methodinstance.Properties.Add("LastModifiedTimeStampField", YourModifiedDateField)
        $methodinstance.Update()
      You can check sample of:
      HOW TO: Create a Searchable SharePoint 2010 BDC .NET Assembly Connector Which Reads From A Flat File

      Metadata Mappings Common Mistake



        When you want manage Metadata Mapping, Somebody use link exists in Queries and Results.
      This link is not correct for SharePoint Fast Search2010, You should Manage Metadata mapping from Fast Search Administration.

      Fast AutoDiscover Properties



      Sometimes will find crawler discover my object crawler properties automatically.  You need to make sure Category Properties defined to allow auto discover. Check Auto Discover property from Fast Search Administration.(You can go to this from any of Fast Service Management)
      Also you can set it from PowerShell:
      Set-FASTSearchMetadataCategory  –Name “Category” –DiscoverNewProperties $flag
      Flag is true/false
      Set-FASTSearchMetadataCategory  –Name “Business Data” –DiscoverNewProperties $true

      Also you can add your crawled properties manual using PowerShell:
      $guid = [guid]::NewGuid()
      New-FASTSearchMetadataCategory -Name MoreWeb -Propset $guid
      New-FASTSearchMetadataCrawledProperty -Name ExtendedTitle -Propset $guid -Varianttype 31

      Enable BCS Content Type to be crawled



      When tried to crawl my business data catalogs and select Business data from content source, You didn’t find my business data.
      Check External Content Type information. You will find its property Crawlable is No you need to update it to Yes like Figure Below:


      This occurs because I didn’t define properties RootFinder or UseClientCachingForSearch to my list Method.
      To Solve this problem you have two options:

      1. You can add these properties to your list methodInstance in bdc file and deploy again.
      2. You can add these properties to your list method of entity using PowerShell:
        $entity = Get-SPBusinessDataCatalogMetadataObject  –BdcObjectType “Entity” –Name “EntityName” –Namespace “ModelNameSpace” -ServiceContext adminurl
        $methodinstance = $entity.MethodInstances | where {$_.Name –eq “ReadListName”}
        $methodinstance.Properties.Add(“RootFinder”, “”)
        $methodinstance.Properties.Add(“UseClientCachingForSearch”, “”)
        $methodinstance.Update()

      Add items to the autocomplete using PowerShell



      If you want to add multiple keywords to autosuggestion of fast:

      1. Create file with keywords separated by newline.
      2. Run Command below to add elements from your file to auto suggest list.Get-content “Auto Suggest File Path” | foreach-object {   New-SPEnterpriseSearchLanguageResourcePhrase –SearchApplication “FastQuery” –Language en-US –Type QuerySuggestionAlwaysSuggest –Name $_ }
      3. Use Commands below to refresh the cache:
        $timer=Get-SPTimerJob|? {$_.Name –eq “Prepare Query Suggestions”}
        $timer.RunNow()

      Wednesday, February 8, 2012

      Creating a FAST Search Scope

      When you try to create scope in Fast Search Search 2010. This will not work only way to create scope in SharePoint Search using PowerShell. Command Below is sample of command for creating scope:

      New-SPEnterpriseSearchQueryScope -SearchApplication "FAST Query Application" -Name "NewScope" -Description "This is my new scope" -DisplayInAdminUI 1 -ExtendedSearchFilter 'path:starts-with("http://myserver/mysitecoll")'

      The ExtendedSearchFilter parameter specifies a FAST Query Language (FQL) expression that will filter the content for that scope.

      There is 2 good blogs talk about Fast Search scope:
      http://blogs.msdn.com/b/jorgeni/archive/2010/02/26/search-scopes-in-fast-search-for-sharepoint-part-1.aspx

      http://blogs.msdn.com/b/jorgeni/archive/2010/03/11/search-scopes-in-fast-search-for-sharepoint-part-2.aspx