Skip to content

Instantly share code, notes, and snippets.

@geoffreysmith
Created June 11, 2013 00:08
Show Gist options
  • Save geoffreysmith/5753569 to your computer and use it in GitHub Desktop.
Save geoffreysmith/5753569 to your computer and use it in GitHub Desktop.
sample sitecore lucene index
<configuration xmlns:x="http://www.sitecore.net/xmlconfig/">
<sitecore>
<databases>
<database id="web" singleInstance="true" type="Sitecore.Data.Database, Sitecore.Kernel">
<Engines.HistoryEngine.Storage>
<obj type="Sitecore.Data.$(database).$(database)HistoryStorage, Sitecore.Kernel">
<param connectionStringName="$(id)" />
<EntryLifeTime>30.00:00:00</EntryLifeTime>
</obj>
</Engines.HistoryEngine.Storage>
<Engines.HistoryEngine.SaveDotNetCallStack>false</Engines.HistoryEngine.SaveDotNetCallStack>
</database>
</databases>
<search>
<configuration>
<indexes>
<index id="global" type="Sitecore.Search.Index, Sitecore.Kernel">
<param desc="name">$(id)</param>
<param desc="folder">$(id)</param>
<Analyzer ref="search/analyzer"/>
<locations hint="list:AddCrawler">
<master type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel">
<Database>master</Database>
<Root>/sitecore/content/site1/</Root>
<IndexAllFields>true</IndexAllFields>
</master>
<web type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel">
<Database>web</Database>
<Root>/sitecore/content/site1/</Root>
<IndexAllFields>true</IndexAllFields>
</web>
</locations>
</index>
<index id="site2" type="Sitecore.Search.Index, Sitecore.Kernel">
<param desc="name">$(id)</param>
<param desc="folder">$(id)</param>
<Analyzer ref="search/analyzer"/>
<locations hint="list:AddCrawler">
<master type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel">
<Database>master</Database>
<Root>/sitecore/content/site2/</Root>
<IndexAllFields>true</IndexAllFields>
</master>
<web type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel">
<Database>web</Database>
<Root>/sitecore/content/site2/</Root>
<IndexAllFields>true</IndexAllFields>
</web>
</locations>
</index>
</indexes>
</configuration>
</search>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment