Skip to content

Commit

Permalink
Merge branch 'fix_double_updateHander_def'
Browse files Browse the repository at this point in the history
  • Loading branch information
billdueber committed Sep 11, 2024
2 parents 2fa78f0 + 1c3a520 commit e5989d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
2 changes: 2 additions & 0 deletions lib/med_installer/indexing_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def rebuild_suggesters(rails_env: (ENV["RAILS_ENV"] || "production"))
logger.info " Recreate suggester for #{suggester_path}"
resp = @build_collection.get "solr/#{@build_collection.name}/#{suggester_path}", { "suggest.build" => "true" }
end
logger.info " ...and finish with another hard commit"
@build_collection.commit(hard: true)
end

# Send the new hyp_to_bibid.json file to the currently defined build_collection
Expand Down
22 changes: 5 additions & 17 deletions solr/dromedary/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,14 @@

<!-- The default high-performance update handler -->
<updateHandler class="solr.DirectUpdateHandler2">
<!--<updateLog>-->
<!--<str name="dir">${solr.ulog.dir:}</str>-->
<!--<int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}-->
<!--</int>-->
<!--</updateLog>-->

<updateLog>
<str name="dir">${solr.ulog.dir:}</str>
</updateLog>

<autoCommit>
<maxTime>15000</maxTime>
<openSearcher>false</openSearcher>
<openSearcher>true</openSearcher>
</autoCommit>

</updateHandler>
Expand Down Expand Up @@ -518,16 +517,5 @@
</requestHandler>


<updateHandler class="solr.DirectUpdateHandler2">

<updateLog>
<str name="dir">${solr.ulog.dir:}</str>
</updateLog>

<autoCommit>
<maxTime>15000</maxTime>
<openSearcher>false</openSearcher>
</autoCommit>

</updateHandler>
</config>
2 changes: 1 addition & 1 deletion solr/dromedary/conf/solrconfig_med/suggesters/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<str name="exactMatchFirst">true</str>
<str name="minPrefixChars">2</str>
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="buildOnCommit">true</str>
<str name="buildOnCommit">false</str>
<str name="buildOnOptimize">false</str>
<str name="buildOnStartup">true</str>

0 comments on commit e5989d3

Please sign in to comment.