Excluding a phrase from the Search Result
- We've a Search box on our Master Page. Beneath the search box is a phrase "e.g. children, jobs". This tells users what to enter in the search box and it's hard-corded in the Master Page Html.
If a user searches for "children", it returns all pages on our site because of the phrase "e.g. children, jobs".
How can I exclude "e.g. children, jobs" from crawling or Search result?
Thanks
Answers
- What is the desired result you are after? Sounds like you should just add "children" and "jobs" as noise words. For more info on that:
http://www.lcbridge.nl/vision/2007/noisewords.htm
John
SharePoint911: SharePoint Consulting
Blog: http://www.rossonmoss.com
Twitter: JohnRossJr
MOSS Explained: An Information Workers Deep Dive into Microsoft Office SharePoint Server 2007- Marked As Answer byMike Walsh MVPMVP, ModeratorFriday, November 06, 2009 11:16 AM
All Replies
- What is the desired result you are after? Sounds like you should just add "children" and "jobs" as noise words. For more info on that:
http://www.lcbridge.nl/vision/2007/noisewords.htm
John
SharePoint911: SharePoint Consulting
Blog: http://www.rossonmoss.com
Twitter: JohnRossJr
MOSS Explained: An Information Workers Deep Dive into Microsoft Office SharePoint Server 2007- Marked As Answer byMike Walsh MVPMVP, ModeratorFriday, November 06, 2009 11:16 AM
In SharePoint, there is provision where you can make some words to be excluded or ignored when a user runs a query. This term in SharePoint is known as "Noise word"
A noise word is a word that is not useful in a search, for example, words such as “the” and “an”. Noise word files, sometimes also referred to as “stop word” files, contain lists of words to be excluded or ignored when a user runs a query. These lists might include words that are irrelevant to the search, such as conjunctions, articles, adjectives, and adverbs, as well as common names, and offensive or inappropriate words
By default, noise word files are created and stored in the following location on the query server: Drive:\Program Files\Microsoft Office Servers\12.0\Data\Config. Noise word files from that default location are copied to the following folder location for each instance of the Microsoft Search service that exists on the query server: Drive:\Program Files\Microsoft Office Servers\12.0\Data\Applications\\<Application UID>\Config, where <Application UID> is the GUID associated with each instance of the Search service.
Use the following procedure to edit a noise word file:1.Start Notepad, and then open the noise word file. For information on locating and identifying the appropriate noise word file, For English Language(US), use
noiseenu.txt file to edit located in Drive:\Program Files\Microsoft Office Servers\12.0\Data\Config
2.Edit the list to include only the words that you want to be ignored in a search query(In your case, its Children, jobs)3.Save the noise word file, and then close Notepad.
Note:
When saving a modified noise word file, always use the default Encoding value.
4.Restart the Office SharePoint Server Search service using the following steps:a.Click Start, point to Administrative Tools, and then click Services.
b.Right-click Office SharePoint Server Search, and then click Restart.
5.In order for Search to utilize the changes to the noise word file, you must start a full crawl of your content source.
For more information, you can follow below article:
http://technet.microsoft.com/en-us/library/dd361733.aspx
Best Luck and Regards,
Yogesh.- Unproposed As Answer byMike Walsh MVPMVP, ModeratorFriday, November 06, 2009 11:15 AM
- Proposed As Answer byYogesh Shetty- A SharePoint Geek Friday, November 06, 2009 10:52 AM
- for noise words, are they case sensitive in the txt file? and should we add other terms of the words? for example: job, jobs?
Will SharePoint take care of these issues? - Yes. SharePoint will definately take care of these words.
noise words are not case sensitive- Proposed As Answer byYogesh Shetty- A SharePoint Geek Friday, November 06, 2009 10:53 AM
- Unproposed As Answer byMike Walsh MVPMVP, ModeratorFriday, November 06, 2009 11:14 AM


