Skip to content

Commit

Permalink
Address review feedback, 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlowskija committed Apr 16, 2024
1 parent 05f5e9e commit 6b7dc1b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void processAdd(AddUpdateCommand cmd) throws IOException {
} else {
if (log.isDebugEnabled()) {
log.debug(
"Allowing document {}, since current core is under the max-field limit (numFields={}, maxThreshold={})",
"Allowing document {}, since current core is under the 'maxFields' limit (numFields={}, maxFields={})",
cmd.getPrintableId(),
currentNumFields,
fieldThreshold);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public void postCommit() {
try {
indexSearcher = getCore().getSearcher();
// Get the number of fields directly from the IndexReader instead of the Schema object to also
// include the
// fields that are missing from the Schema file (dynamic/deleted etc.)
// include the fields that are missing from the Schema file (dynamic/deleted etc.)
numFields = indexSearcher.get().getFieldInfos().size();
} finally {
if (indexSearcher != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@

<indexConfig>
<mergeScheduler class="${solr.mscheduler:org.apache.lucene.index.ConcurrentMergeScheduler}"/>
: </indexConfig>
</indexConfig>
</config>

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

public class NumFieldLimitingUpdateRequestProcessorIntegrationTest extends SolrCloudTestCase {

private static long ADMIN_OPERATION_TIMEOUT = 15 * 1000;
private static String SINGLE_SHARD_COLL_NAME = "singleShardColl";
private static String FIELD_LIMITING_CS_NAME = "fieldLimitingConfig";

Expand Down
2 changes: 1 addition & 1 deletion solr/server/solr/configsets/_default/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@
</updateProcessor>

<!-- The update.autoCreateFields property can be turned to false to disable schemaless mode -->
<updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="true"
<updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="${update.autoCreateFields:true}"
processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">
<processor class="solr.LogUpdateProcessorFactory"/>
<processor class="solr.DistributedUpdateProcessorFactory"/>
Expand Down

0 comments on commit 6b7dc1b

Please sign in to comment.