Fast Search Pipeline Extensibility for Specific Content Source

Friday, May 17, 2013

Since the Pipeline Extensibility is not restricted to any content source and the fact that you do not have a proper API, makes it really hard to work with a specific Content Source. Luckily for us we have a Crawled Property which is mapped to the managed property "ContentSource": <CrawledProperty propertySet="012357BD-1113-171D-1F25-292BB0B0B0B0" varType="31" propertyName="315" /> So you can include this in your extensibility configuration and you can see which content source the data came from and apply appropriate logic. Example: static void Main(string args) { XDocument inputDoc = XDocument.Load(args); ...
one comment

Getting “Your query is malformed.Please rephrase your query” Error When Using FQL Query Keyword With Double Quotes

Thursday, April 11, 2013

When trying to use FQL (Fast Query Language) query keyword with double quotes, for example: body: string(“”hello world””, mode=”and”) You’ll get “Your query is malformed.Please rephrase your query” Error.  Since FQL has a problem with double quotes, the trick is to use backslash (\) in front of the quotes,  for example: body: string(“\”hello world\””, mode=”and”) Hope this trick was helpful for you as it was for me.
no comments

SharePoint 2010: Clearing Items For Specific Content Source Tool

Monday, April 30, 2012

  Recently our client needed to remove items from a specific content source. The problem was that neither the standard SharePoint Search nor FS4SP had any support for this scenario (UI or any object API) even though it seems like a reasonable task. The only thing the product offers us is Index Reset which clears all the searchable items in your index, and in case of FS4SP we will need to call Clear-FASTSearchContentCollection using PowerShell.  Of course it’s a good method for clearing all content but in our case we needed to clear only one content source . Luckily for us Mikael...

Creating Content Source based on his content type using SharePoint PowerShell

Wednesday, October 19, 2011

Hi guys   Here's a way to create a content source based on his content type like   "SharePoint sites" or "Web Sites" etc...   if($myType -eq "Web"){ $webCS=$ssaContent.ContentSources.Create(, $contentSourceName); $webCS.startAddresses.Add($siteUrl); } if($myType -eq "SharePoint"){ $sharePointCS=$ssaContent.ContentSources.Create(, $contentSourceName); $sharePointCS.startAddresses.Add($siteUrl); } if($myType -eq "File"){ $fileCS=$ssaContent.ContentSources.Create(, $contentSourceName); $fileCS.startAddresses.Add($siteUrl);}   That's all Folks :)
one comment

Modify the scope name using SharePoint PowerShell

Hi guys,   Here's a simple example how to modify the scope's name using SharePoint 2010 Managment Shell   write-host  -f Yellow "modifing scope Name..." Get-SPEnterpriseSearchQueryScope -Identity "Scope Name" -SearchApplication "SSA Name" | Set-SPEnterpriseSearchQueryScope -Name "My New Scope Name"  -AlternateResultsPage http://sp2010/   write-host -f green  "Scope Name was successfully modified"   That's all Folks :)