Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: update solr config to match solr-trove #744

Merged
merged 3 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions solr/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

<dynamicField name="*_tiv" type="text" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
<dynamicField name="*_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
<dynamicField name="*_stimv" type="s_text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>

<dynamicField name="*_tsiv" type="text" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
<dynamicField name="*_tsimv" type="text" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
Expand Down Expand Up @@ -214,6 +215,11 @@
<copyField source="*_ssim" dest="all_text_timv" maxChars="3000"/>
<copyField source="*_si" dest="all_text_timv" maxChars="3000"/>

<copyField source="*_tsim" dest="all_text_stimv" maxChars="3000"/>
<copyField source="*_tesim" dest="all_text_stimv" maxChars="3000"/>
<copyField source="*_ssim" dest="all_text_stimv" maxChars="3000"/>
<copyField source="*_si" dest="all_text_stimv" maxChars="3000"/>

<!-- create stemmed text fields -->
<copyField source="*_tsim" dest="*_stim"/>
<copyField source="*_tsi" dest="*_sti"/>
Expand Down Expand Up @@ -296,6 +302,7 @@
<tokenizer class="solr.ICUTokenizerFactory"/>
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
<filter class="solr.TrimFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>

Expand Down
2 changes: 1 addition & 1 deletion solr/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
autowarmCount="0"/>
</query>

<statsCache class="org.apache.solr.search.stats.LocalStatsCache"/>
<statsCache class="org.apache.solr.search.stats.ExactStatsCache"/>


<requestHandler name="search" class="solr.SearchHandler" default="true">
Expand Down