-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing solr 9 configuration directory
- Loading branch information
Showing
4 changed files
with
67 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<schema name="coordinateHighlight" version="1.0"> | ||
<types> | ||
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> | ||
<fieldtype name="text_ocr" class="solr.TextField" storeOffsetsWithPositions="true" termVectors="true"> | ||
<analyzer type="index"> | ||
<charFilter class="de.digitalcollections.solrocr.lucene.filters.ExternalUtf8ContentFilterFactory" /> | ||
<charFilter class="de.digitalcollections.solrocr.lucene.filters.OcrCharFilterFactory" /> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
<filter class="solr.StopFilterFactory"/> | ||
<filter class="solr.PorterStemFilterFactory"/> | ||
</analyzer> | ||
<analyzer type="query"> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
<filter class="solr.StopFilterFactory"/> | ||
<filter class="solr.PorterStemFilterFactory"/> | ||
</analyzer> | ||
</fieldtype> | ||
<fieldType name="text" class="solr.TextField"> | ||
<analyzer> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
<filter class="solr.StopFilterFactory"/> | ||
<filter class="solr.PorterStemFilterFactory"/> | ||
</analyzer> | ||
</fieldType> | ||
</types> | ||
|
||
<fields> | ||
<field name="id" type="string" multiValued="false" indexed="true" stored="true" required="true" /> | ||
<field name="ocr_text" type="text_ocr" multiValued="false" indexed="true" stored="true" /> | ||
</fields> | ||
<uniqueKey>id</uniqueKey> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<config> | ||
<luceneMatchVersion>9.0</luceneMatchVersion> | ||
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/> | ||
<schemaFactory class="ClassicIndexSchemaFactory"/> | ||
|
||
<lib dir="/var/solr/data/plugins" regex=".*\.jar" /> | ||
|
||
<searchComponent class="de.digitalcollections.solrocr.solr.OcrHighlightComponent" | ||
name="ocrHighlight" /> | ||
|
||
<requestHandler name="/select" class="solr.SearchHandler"> | ||
<arr name="components"> | ||
<str>query</str> | ||
<str>ocrHighlight</str> | ||
<str>highlight</str> | ||
</arr> | ||
</requestHandler> | ||
</config> |