Skip to content

Commit

Permalink
Issue #978
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-stastny committed Jul 18, 2023
1 parent 8bacb48 commit 2a30143
Show file tree
Hide file tree
Showing 5 changed files with 1,624 additions and 46 deletions.
139 changes: 139 additions & 0 deletions installation/solr-6.x/sdnnt-sync/conf/managed-schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Solr managed schema - automatically generated - DO NOT EDIT -->
<schema name="processing-schema" version="1.6">
<uniqueKey>id</uniqueKey>
<fieldType name="ancestor_path" class="solr.TextField">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/"/>
</analyzer>
</fieldType>
<fieldType name="binary" class="solr.BinaryField"/>
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>
<fieldType name="date" class="solr.TrieDateField" positionIncrementGap="0" docValues="true" precisionStep="0"/>
<fieldType name="dates" class="solr.TrieDateField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="0"/>
<fieldType name="descendent_path" class="solr.TextField">
<analyzer type="index">
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
</analyzer>
</fieldType>
<fieldType name="double" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" precisionStep="0"/>
<fieldType name="doubles" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="0"/>
<fieldType name="float" class="solr.TrieFloatField" positionIncrementGap="0" docValues="true" precisionStep="0"/>
<fieldType name="floats" class="solr.TrieFloatField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="0"/>
<fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" docValues="false" multiValued="true"/>
<fieldType name="int" class="solr.TrieIntField" positionIncrementGap="0" docValues="true" precisionStep="0"/>
<fieldType name="ints" class="solr.TrieIntField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="0"/>
<fieldType name="long" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" precisionStep="0"/>
<fieldType name="longs" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="0"/>
<fieldType name="pid_edge_ngram" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.EdgeNGramFilterFactory" maxGramSize="35" minGramSize="5"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
</analyzer>
</fieldType>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true"/>
<fieldType name="strings" class="solr.StrField" sortMissingLast="true" docValues="true" multiValued="true"/>
<fieldType name="tdate" class="solr.TrieDateField" positionIncrementGap="0" docValues="true" precisionStep="6"/>
<fieldType name="tdates" class="solr.TrieDateField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="6"/>
<fieldType name="tdouble" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" precisionStep="8"/>
<fieldType name="tdoubles" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/>
<fieldType name="text_cz" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.CzechStemFilterFactory"/>
</analyzer>
</fieldType>
<fieldType name="text_general_edge_ngram" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.EdgeNGramFilterFactory" maxGramSize="7" minGramSize="2"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
</analyzer>
</fieldType>
<fieldType name="text_general_ngram" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.NGramFilterFactory" maxGramSize="7" minGramSize="2"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
</analyzer>
</fieldType>
<fieldType name="tfloat" class="solr.TrieFloatField" positionIncrementGap="0" docValues="true" precisionStep="8"/>
<fieldType name="tfloats" class="solr.TrieFloatField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/>
<fieldType name="tint" class="solr.TrieIntField" positionIncrementGap="0" docValues="true" precisionStep="8"/>
<fieldType name="tints" class="solr.TrieIntField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/>
<fieldType name="tlong" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" precisionStep="8"/>
<fieldType name="tlongs" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/>

<field name="_root_" type="string" docValues="false" indexed="true" stored="false"/>
<field name="_version_" type="long" indexed="true" stored="true"/>



<!-- hlavni zaznam -->
<!-- jednoznacny identifikator -->
<field name="id" type="string" indexed="true" stored="true"></field>
<!-- pid -->
<field name="pid" type="string" indexed="true" stored="true" multiValued="false"></field>
<!-- datum sklizeni -->
<field name="fetched" type="date" default="NOW" indexed="true" stored="true" multiValued="false"></field>

<!-- type -->
<field name="type_of_rec" type="string" indexed="true" stored="true" multiValued="false"></field>

<!-- catalog -->
<field name="catalog" type="string" indexed="true" stored="true" multiValued="false"></field>

<!-- main or granularity -->
<field name="type" type="string" indexed="true" stored="true" multiValued="false"></field>
<!-- titulek -->
<field name="title" type="string" indexed="true" stored="true" multiValued="false"></field>
<!-- licence -->
<field name="license" type="string" indexed="true" stored="true" multiValued="false"></field>
<!-- stav -->
<field name="state" type="string" indexed="true" stored="true" multiValued="false"></field>


<field name="has_granularity" type="boolean" indexed="true" stored="true"
multiValued="false"></field>

<!-- control fields -->
<field name="controlField_typeofdate" type="string" indexed="true" stored="true" multiValued="false"></field>
<field name="controlField_date1" type="string" indexed="true" stored="true" multiValued="false"></field>
<field name="controlField_date2" type="string" indexed="true" stored="true" multiValued="false"></field>


<!-- Real kramerius fields -->
<field name="real_kram_licenses" type="string" indexed="true" stored="true" multiValued="true"></field>
<field name="real_kram_exists" type="boolean" indexed="true" stored="true" multiValued="false"></field>
<field name="real_kram_date" type="string" indexed="true" stored="true" multiValued="false"></field>
<field name="real_kram_model" type="string" indexed="true" stored="true" multiValued="false"></field>
<field name="real_kram_titles_search" type="string" indexed="true" stored="true" multiValued="true"></field>

<field name="sync_actions" type="string" indexed="true" stored="true" multiValued="true"></field>
<field name="sync_sort" type="int" indexed="true" stored="true" multiValued="false"></field>

<field name="process_id" type="string" indexed="true" stored="true" multiValued="true"></field>
<field name="process_uuid" type="string" indexed="true" stored="true" multiValued="true"></field>

<!-- granularita -->
<field name="rocnik" type="string" indexed="true" stored="true" multiValued="false"></field>
<field name="parent_id" type="string" indexed="true" stored="true" multiValued="false"></field>



</schema>
6 changes: 6 additions & 0 deletions installation/solr-6.x/sdnnt-sync/core.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Written by CorePropertiesLocator
#Fri Aug 27 10:44:58 UTC 2021
name=sdnnt-sync
config=solrconfig.xml
schema=schema.xml
dataDir=data
Loading

0 comments on commit 2a30143

Please sign in to comment.