Question

I have a requirement for FQL search on SharePoint User Profile (SharePoint 2013). I can't use KQL since it doesnt do 'contains' searches.

I created a copy of the 'Local People Results' result source and set the Query Transform as:

{?andnot({searchTerms},filter(contentclass:"urn:content-class:SPSPeople*"))}

Fast search seems to be working.

I set the 'Type' field in the result source as 'SharePoint Search Results' and I am getting results for content in SharePoint site. But the results don't contain people. The query I used is Author:string("shaju").

But I set the Type to 'People Search Results' and don't get any results at all. The query I am using here is FirstName:string("shaju"). Firstname is a userprofile property.

I removed the QueryTransform tried a query in KQL(FirstName:shaju) and it works.any ideas on why FAST search is not providing results for people(user profile)?

Was it helpful?

Solution

People results are stored in the SharePoint index, not in the FS4SP index. Hence FQL will not work for people queries.

And KQL does do contains. Property:value is contains while Property=value is equals.

Author:Mikael

will return both "Mikael Svenson" as well as "Mr Mikael". Should work for FirstName as well I believe.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top