MultiIndexSearcher: Using custom stopwords

I have my CombinedIndexSearcher set up this way:

<add name="CombinedIndexSearcher" type="Examine.LuceneEngine.Providers.MultiIndexSearcher, Examine" 
			analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"
			indexSets="UserIndexSet,ExternalIndexSet" 
			enableLeadingWildcard="true"/>

To test if manually setting my stopwords works, I have tried to remove all of them like this:

protected override void OnApplicationStarted(object sender, EventArgs e)
{
   Lucene.Net.Analysis.StopAnalyzer.ENGLISH_STOP_WORDS_SET = new System.Collections.Hashtable();
}

Then I have created my own searcher-method where I start out my search by instanciating my searcher like this:

var searcher = (MultiIndexSearcher)ExamineManager.Instance.SearchProviderCollection["CombinedIndexSearcher"];

When I now look at my newly created searcher, it tells me that it consists of a StandardAnalyzer, as I have set it to be in my configuration.
But it also has 33 elements in the stopSet property. Now this part is quite alarming for me.

Is there anything I’m doing wrong? Does anyone have any input for why I am getting any stopwords when I have emptied StopAnalyzer.ENGLISH_STOP_WORDS_SET

Any input is great, I’m kinda stuck atm :confused:


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/71787-multiindexsearcher-using-custom-stopwords