Skip to content

Instantly share code, notes, and snippets.

@perploug
Last active December 8, 2017 14:32
Show Gist options
  • Save perploug/993437949d81e509cbb8b6c57b60ef1d to your computer and use it in GitHub Desktop.
Save perploug/993437949d81e509cbb8b6c57b60ef1d to your computer and use it in GitHub Desktop.
Multi-index
<add name="TownIndexer"
type="Examine.LuceneEngine.Providers.SimpleDataIndexer, Examine"
indexSet="ukTownsIndexSet"
dataService="ExamineBootcamp.BusinessLogic.Indexer.DbIndexer, ExamineBootcamp.BusinessLogic"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexTypes="ukTowns" runAsync="true"/>
<add name="TownSearcher" type="Examine.LuceneEngine.Providers.LuceneSearcher, Examine"
indexSet="ukTownsIndexSet"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>
<IndexSet SetName="ukTownsIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/uktowns/">
<IndexUserFields>
<add Name="name" EnableSorting="true" />
<add Name="country" EnableSorting="true" />
<add Name="grid_reference" />
<add Name="latitude" />
<add Name="longitude" />
<add Name="postcode_sector" />
</IndexUserFields>
</IndexSet>
<add name="ExternalSearcher"
type="Examine.LuceneEngine.Providers.MultiIndexSearcher, Examine"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"
enableLeadingWildcards="true"
indexSets="ExternalIndexSet,PDFIndexSet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment