Skip to content

Commit

Permalink
Make total fields limit configurable via sysprop (#997)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryan Burkholder <[email protected]>
  • Loading branch information
bryanlb and bryanlb authored Jul 15, 2024
1 parent 795fd24 commit 5a0ed39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public class OpenSearchAdapter {

// we can make this configurable when SchemaAwareLogDocumentBuilderImpl enforces a limit
// set this to a high number for now
private static final int TOTAL_FIELDS_LIMIT = 2500;
private static final int TOTAL_FIELDS_LIMIT =
Integer.parseInt(System.getProperty("astra.mapping.totalFieldsLimit", "2500"));

// This will enable OpenSearch query parsing by default, rather than going down the
// QueryString parsing path we have been using
Expand Down
11 changes: 10 additions & 1 deletion docs/topics/System-properties-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,13 @@ schema.

{style="narrow"}
defaultValue
: 500
: 500


## astra.mapping.totalFieldsLimit
<tldr>experimental</tldr>
Maximum amount of total fields used by the mapper service for query parsing.

{style="narrow"}
defaultValue
: 2500

0 comments on commit 5a0ed39

Please sign in to comment.