Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Modified schema & solrconfig for use with solrCloud in Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil MacGregor committed Apr 22, 2015
1 parent 1d87ed9 commit 45885f0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions solr/blacklight-core/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@
when adding a document.
-->

<!-- NOTE: Henry says this is critical, for solrCloud ! -->
<field name="_version_" type="long" indexed="true" stored="true"/>

<!-- NOTE: this is not a full list of fields in the index; dynamic fields are also used -->
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
Expand Down
15 changes: 11 additions & 4 deletions solr/blacklight-core/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
It is *not* a good example to work from.
-->
<config>
<luceneMatchVersion>LUCENE_40</luceneMatchVersion>
<luceneMatchVersion>4.9</luceneMatchVersion>
<!-- The DirectoryFactory to use for indexes.
solr.StandardDirectoryFactory, the default, is filesystem based.
solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>

<lib dir="../lib/contrib/analysis-extras/lib" />
<lib dir="../lib/contrib/analysis-extras/lucene-libs" />
<!-- Neil -->
<lib dir="/opt/solr/lib/contrib/analysis-extras/lib" />
<lib dir="/opt/solr/lib/contrib/analysis-extras/lucene-libs" />

<dataDir>${solr.blacklight-core.data.dir:}</dataDir>

Expand All @@ -41,7 +42,13 @@
<requestHandler name="standard" class="solr.StandardRequestHandler" />
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
<requestHandler name="/update" class="solr.UpdateRequestHandler" />
<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />

<!-- Neil -->
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog>
<str name="dir">${solr.data.dir:}</str>
</updateLog>
</updateHandler>

<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
<lst name="invariants">
Expand Down

0 comments on commit 45885f0

Please sign in to comment.