Skip to content

Commit

Permalink
[ issue #14 ] SOLR configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Aug 27, 2014
1 parent 927725e commit 17c3b89
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 3 deletions.
3 changes: 0 additions & 3 deletions jena-nosql-binding/jena-nosql-binding-solr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
<artifactId>jena-nosql-binding-solr</artifactId>
<name>Apache SOLR binding module</name>
<description>https://github.com/agazzarini/jena-nosql/issues/14</description>
<properties>
<solr.version>4.8.0</solr.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.solr</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="jena-nosql SOLR simple binding Schema" version="1.5">
<fields>
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="s" type="string" indexed="true" stored="true" required="true" />
<field name="p" type="string" indexed="true" stored="true" required="true" />
<field name="o" type="string" indexed="true" stored="true" required="true" />
<field name="c" type="string" indexed="true" stored="true" required="true" />
<field name="_version_" type="long" indexed="true" stored="true" />
</fields>
<uniqueKey>id</uniqueKey>
<types>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
</types>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<luceneMatchVersion>LUCENE_48</luceneMatchVersion>
<dataDir>${solr.data.dir}/${solr.core.name}/data</dataDir>
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}" />
<codecFactory class="solr.SchemaCodecFactory" />
<schemaFactory class="ClassicIndexSchemaFactory" />
<indexConfig>
<lockType>${solr.lock.type:native}</lockType>
</indexConfig>
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog>
<str name="dir">${solr.ulog.dir:}</str>
</updateLog>
<autoCommit>
<maxTime>15000</maxTime>
<openSearcher>false</openSearcher>
</autoCommit>
<autoSoftCommit>
<maxTime>1000</maxTime>
</autoSoftCommit>
</updateHandler>
<query>
<maxBooleanClauses>1024</maxBooleanClauses>
<filterCache class="solr.FastLRUCache" size="512"
initialSize="512" autowarmCount="0" />

<queryResultCache class="solr.LRUCache" size="512"
initialSize="512" autowarmCount="0" />

<documentCache class="solr.LRUCache" size="512"
initialSize="512" autowarmCount="0" />

<enableLazyFieldLoading>true</enableLazyFieldLoading>

<queryResultWindowSize>20</queryResultWindowSize>

<queryResultMaxDocsCached>200</queryResultMaxDocsCached>

<useColdSearcher>false</useColdSearcher>
<maxWarmingSearchers>2</maxWarmingSearchers>
</query>
<requestDispatcher handleSelect="false">
<requestParsers enableRemoteStreaming="true"
multipartUploadLimitInKB="2048000" formdataUploadLimitInKB="2048" />
<httpCaching never304="true" />
</requestDispatcher>

<requestHandler name="/select" class="solr.SearchHandler" default="true">
<lst name="defaults">
<str name="echoParams">explicit</str>
<int name="rows">10</int>
</lst>
</requestHandler>

<requestHandler name="/update" class="solr.UpdateRequestHandler">
<lst name="defaults">
<str name="update.chain">dedupe</str>
</lst>
</requestHandler>

<requestHandler name="/analysis/field" startup="lazy"
class="solr.FieldAnalysisRequestHandler" />

<requestHandler name="/analysis/document"
class="solr.DocumentAnalysisRequestHandler" startup="lazy" />

<requestHandler name="/admin/" class="solr.admin.AdminHandlers" />

<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
<lst name="invariants">
<str name="q">*:*</str>
</lst>
<lst name="defaults">
<str name="echoParams">all</str>
</lst>
</requestHandler>

<updateRequestProcessorChain name="dedupe">
<processor class="solr.processor.SignatureUpdateProcessorFactory">
<bool name="enabled">true</bool>
<str name="signatureField">id</str>
<bool name="overwriteDupes">false</bool>
<str name="fields">s,p,o,c</str>
<str name="signatureClass">solr.processor.Lookup3Signature</str> </processor>
<processor class="solr.LogUpdateProcessorFactory" />
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
<admin>
<defaultQuery>*:*</defaultQuery>
</admin>
</config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<solr persistent="false" sharedLib="lib">
<cores adminPath="/admin/cores">
<core name="store" instanceDir="plain-store" />
</cores>
</solr>

0 comments on commit 17c3b89

Please sign in to comment.