Question

How can I restrict the SharePoint search to only search against one field for a content type.

I can create a scope for the content type but how do I go about restricting the search to just the one particular field?

Was it helpful?

Solution

The search crawler will INDEX the entire document as well as the managed properties you have specified. I don't think that it is possible to limit the indexing process to just one managed property. However, you can customize the form/page used for search input to only allow for one managed property to be searched. Start with the Advanced Search page and remove everything you don't want the users to see.

OTHER TIPS

you can set the ContentType managed property to be allowed in search scopes:

SSP > Search administration > Managed Properties

find ContentTypes managed property > Edit/map property

check "Allow this property to be used in scopes".

Now you can create a new scope

SSP > Search settings > scopes

When adding rules to the scope, select Property Query and add ContentTypes as property restriction. The value should be the content type you want to restrict the scope for.

Update scopes and add your new property to scope dropdown in your site settings, or add a new search tab (OBS: it might take a while before the new scope shows up in View Scopes in site settings).

hth Anders Rask

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