Is it possible to do a case insensitive search using Examine Index and Lucene without altering the data stored? I'm saving articles with Id, title, the text and a date. I don't want to index my data as lowercase since I want to read my data from the index and display it as it is. So I can skip the step going to the DB to get data. Saving the same data twice, once as it is and once as lower case, dosn't feel like the right way of doing it.
Any suggestions of how to aproach this?
ExamineIndex.config
<IndexSet SetName="MySearchIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/MySearch/" >
<IndexUserFields>
<add Name="Id" />
<add Name="Title" />
<add Name="Text" />
<add Name="Date" />
</IndexUserFields>
ExamineSettings.config
<add name="MySearchIndexer" type="Examine.LuceneEngine.Providers.SimpleDataIndexer, Examine"
dataService="X.Service.MyIndexerService, X"
indexTypes="CustomData"
runAsync="false"
enableDefaultEventHandler="true"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
<add name="MySearchSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" enableLeadingWildcard="true" />