This is an old topic, and i know it has been covered by some other people, but it is one i keep having to rectify in various client environments, so thought i would give myself an easy reference point for it rather than keep trawling the web each time.
So you have added the advance search Web Part to a page and the only two options which exist in the operator drop down (see below) are “Equals” and “Does not equal”. So where has the “contains” and “does not contain” operator gone.
The explanation of why it has disappeared could be due to an MS infrastructure update to increase performance for search.
Well, to restore this follow the instructions below.
1. If the page is not already in Edit mode, click on Site Actions and then Edit Page.
2. On the Advanced Search Web Part click on the Edit and then Modify Shared Web Part
3. From the Web Part property section on the right, Scroll down to the properties section and then click on the … button next to the properties section
4. At the top of the Dialogue box, you may have one of 2 scenarios. Either the following appears
or there is no Element for the AllowOpContains. If you have the Element, then simply change the False value to True.
if you do not have the element at all paste the following directly inside the root element.
1: <Option Name="AllowOpContains" Value="True"/>
It should then look like this.
5. Now click ok and then Apply or Ok on the Web Part properties panel, and check you have the options as shown below.
Gavin,
ReplyDeleteThanks for the quick guide, was looking everywhere for the info and found your blog entry on it, quick and precise.
Thanks again,
Will.