Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need to search my query only in specific managed properties. Currently I am having results which do not contain the query to be search.

How can I restrict so that search is done only in a b c managed properties? I am using FAST search and have created a scope.

share|improve this question
add comment

2 Answers

Use the following to restrict to only these properties

a:"myPropertySearchA" OR b:"myPropertySearchB" OR C:"myPropertySearchD"

Reference: Using Operators in Keyword Queries and Property Restriction Keyword Queries

share|improve this answer
    
Thanks @Benny. But i want it to be configured somewhere at the backend. i dont want this to get displayed in URL. may be in configurations that only these properties should be searchable –  Varun Verma Nov 15 '13 at 9:18
    
Then you're looking for something like what's described in the article Walkthrough: Creating a Basic Search Web Part Using the Query Object Model I guess? –  Benny Skogberg Nov 15 '13 at 9:23
    
Not exactly. No Custom webpart i want. I want that Fast search should not include my query in selected search results. query should be search only in selected properties but other properties which are associated with searchable properties will be displayed. –  Varun Verma Nov 15 '13 at 9:34
1  
I suggest adding the properties as an a= parameter, and have them show in the URL. Your other option would be a custom web part inheriting the core results web part, which injects your filter. –  Mikael - SharePoint MVP Nov 15 '13 at 12:14
add comment

The correct syntax is PropertyName:"Query". In your case it would be:

a:"Query" OR b:"Query" OR c:"Query"

or

a:"Query" AND b:"Query" AND c:"Query"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.