Skip to content

Commit 1eff361

Browse files
committed
fixup! IBX-6649: Added support for spell checking
1 parent 1f156eb commit 1eff361

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/generate-solr-config.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ fi
121121
# Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema
122122
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' $DESTINATION_DIR/solrconfig.xml
123123
sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml
124+
# Configure spellcheck component
125+
sed -i.bar 's/<str name="field">_text_<\/str>/<str name="field">meta_content__text_t<\/str>/' $DESTINATION_DIR/solrconfig.xml
126+
# Add spellcheck component to /select handler
127+
sed -i.bak 's/<requestHandler name="\/select" class="solr.SearchHandler">/<requestHandler name="\/select" class="solr.SearchHandler">\n <arr name="last-components">\n <str>spellcheck<\/str>\n <\/arr>/' $DESTINATION_DIR/solrconfig.xml
124128

125129
rm $DESTINATION_DIR/solrconfig.xml.bak
126130

0 commit comments

Comments
 (0)