Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I know I can exclude things down to a column level, but it is possible to exclude a certain word and or phrase from the search indexing?

I have a tag called "Not Applicable" and the client wishes to not have this phrase displayed in the search results, it is just the phrase, they want to see the result without this tag being shown.

Is this possible via configuration instead of having to create a custom results page?

[update]
Been playing with the noisexxx.txt files, but due to the way noise/stop words keep phrases, they still appear, I am going to try with the xslt transformation as suggested here next.

share|improve this question
    
Can you exclude Tags/phrases through the Scoping rules? This is a little more atomic than anything I have tried so I don't know if it's feasible but maybe with the Search results xslt you can exclude this from showing up in the results? –  MichaelF Oct 1 '12 at 11:50
    
I'm trying but all I seem to be able to do it exclude a whole result, not just filter this tag from showing in the results. It's a very fine tuning requirement, I thought maybe break words as they have this but I can't get it working. –  Hugh Wood Oct 1 '12 at 11:51
    
I thought the Refinement Panel in the results page only affected what it showed for associated tags if you changed the Data View properties, but I will admit its been awhile since I have been on that page. –  MichaelF Oct 1 '12 at 11:57

2 Answers 2

up vote 0 down vote accepted

If you want the search results but don't want the phrase to show up in the results page, you could fool around with the search results xsl to either strip out the phrase or at least not highlight it.

share|improve this answer
    
This might be the only solution, I will keep playing, this is what I wanted to stay away from, filtering results like this in xslt is a bit heavy imo. –  Hugh Wood Oct 3 '12 at 10:51
    
Yes, I think it is an interesting requirement that users need to be able to search for the phrase and get results but not see the search phrase in the results. I have customized our search results xslt and once you get in there, it isn't so bad. XSLT work is not one of my favorite tasks. –  sween_sp Oct 4 '12 at 13:18

One option is to add the words 'Not Applicable' to the list of noise words in "C:\Program Files\Microsoft Office Servers\14.0\Data\Config\noiseenu.txt", but that of cause means that you won't be able to search for either of them.

The change of noise words should be followed by:

  • stop/start osearch14
  • Full crawl
share|improve this answer
    
This was my issue in that it is a phrase, however I think not is already there since it is a keyword, I can take a look and have a play. –  Hugh Wood Oct 1 '12 at 12:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.