I use Examine search in an Umbraco 7 application. Somehow, i do not get any results where searching for words containing a hyphen , for example "Tag-name".
I've set up Examine to use WhitespaceAnalyzer for both the ExamineSearchProvider and the ExamineIndexProvider. I've also removed the cache in the tempfolder, but still no result. I've checked the value in the database, and they are in the same format as the query, "XXX-xxx". I've also tried to escape the query, but that doesn't change the result.
Is there anything here that I'm not seeing?
In ExamineSettings.config:
<Examine>
<ExamineIndexProviders>
<providers>
<!-- custom search index provider -->
<add name="MySearchIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
supportUnpublished="false"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"
indexSet="MySearch"/>
</providers>
</ExamineIndexProviders>
<ExamineSearchProviders defaultProvider="MySearchSearcher">
<providers>
<!-- custom search provider -->
<add name="MySearchSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" indexSet="MySearch" enableLeadingWildcards="true"/>
</providers>
</ExamineSearchProviders>
</Examine>
And in ExamineIndex.config:
<ExamineLuceneIndexSets>
<IndexSet SetName="MySearch" IndexPath="~/App_Data/TEMP/ExamineIndexes/MySearch/">
<IndexAttributeFields>
<add Name="id" />
<add Name="nodeName"/>
<add Name="updateDate" />
<add Name="writerName" />
<add Name="nodeTypeAlias" />
</IndexAttributeFields>
<IndexUserFields>
<add Name="nodeName" />
<add Name="content"/>
<add Name="tags" />
<add Name="category" />
</IndexUserFields>
<IncludeNodeTypes>
<add Name="article" />
<add Name="note" />
</IncludeNodeTypes>
</IndexSet>
</ExamineLuceneIndexSets>