Benjamin Habegger created OAK-12435:
---------------------------------------

             Summary: Make Elasticsearch keyword ignore_above configurable in 
Oak index definitions
                 Key: OAK-12435
                 URL: https://issues.apache.org/jira/browse/OAK-12435
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Benjamin Habegger


h1. Problem

Oak's Elasticsearch backend hard-codes the Elasticsearch keyword mapping 
parameter {{ignore_above}} to 256. Index definitions cannot currently override 
this value.

This introduces backend-dependent query results for string properties that 
exceed 256 characters but remain well below Lucene's term-size limit. In 
particular, equality and IS NOT NULL queries can miss nodes with values that 
the Lucene backend can index.

ignore_above is an Elasticsearch mapping parameter, not an existing Oak 
index-definition option. The requested improvement is to expose it through 
Oak's index definition.
h1. Proposal

Introduce a documented, per-property index-definition setting, for example 
ignoreAbove. This name is proposed, not an existing option.
{code:java}
/oak:index/example
  type = "elasticsearch"
  indexRules
    nt:base
      properties
        description
          name = "description"
          propertyIndex = true
          notNullCheckEnabled = true
          ignoreAbove = 1024
{code}
The mapping builder should read this setting and generate ignore_above: 1024 
for that property's keyword mapping.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to