Search — September 9, 2009 8:30 pm

Adding the contains option to the Advanced Search Box

Posted by

Many people dont know but in the advanced search box there is a couple more options than simply Equals or Does Not Equal.

Equals/Does not Equal option in advanced search box

Equals/Does not Equal option in advanced search box

Another option that you can specify is the Contains or Does Not Contain option which used to be there by default by for some reason is disabled with the infrastructure update.
With this option the user has the option of getting some more leverage in their results when using advanced search, always a good thing!

To do this simply go to the  Properties section of the Advanced Search Box configuration, click on the Builder dialog box as seen below and then in the Properties xml add the following:

<Option Name=”AllowOpContains” Value=”True”/>

See below for the builder area:

Advanced Search Box builder option

Advanced Search Box builder option

Click on OK and now you should see the advanced search box has the Contains and Does Not Contain option.

Contains

Contains

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

  • Share this post:
  • Facebook
  • Twitter
  • Delicious
  • Digg

1 Comment

  • Hi, thanks for this help, but do you knoy if there is a way to get ‘contains’ as Default value?

    thanks

Leave a Reply

— required *

— required *