Allow smart searches on document properties only

0
Comments
1
Votes
Login to vote

When doing a smart search, you can specify specific fields - eg if you want to search for a document containing "keyboard" with a specific document node, you can use the following query:

keyboard DocumentNodeID:(int)22

However, DocumentNodeID:(int)22 won't return any results on its own by default. If you want to enable searches with filters but without "content" specified, you need to add the following appSetting key to the web.config:

 

<add key="CMSSearchOnlyWhenContentPresent" value="false" />

 

 

 
Posted by Henry Chong on 8/25/2011 1:11:10 AM
Filed under: search, web.config
  
Comments
Blog post currently doesn't have any comments.