Amazon ElasticSearch 7.9 is missing wildcard data type support

I’m very interested in using the wildcard field type. Elastic.co announced that here:

https://www.elastic.co/blog/find-strings-within-strings-faster-with-the-new-elasticsearch-wildcard-field

" In Elasticsearch 7.9, we’ll be introducing a new “wildcard” field type optimized for quickly finding patterns inside string values."

If that is the case, and I’m running an Amazon ES 7.9 cluster, then why am I receiving an error when trying to create:

PUT /my-index-000001
{
  "mappings": {
    "properties": {
      "my_wildcard": {
        "type": "wildcard"
      }
    }
  }
}

The error I receive back is:

{
    "error": {
        "root_cause": [
            {
                "type": "mapper_parsing_exception",
                "reason": "No handler for type [wildcard] declared on field [my_wildcard]"
            }
        ],
        "type": "mapper_parsing_exception",
        "reason": "Failed to parse mapping [_doc]: No handler for type [wildcard] declared on field [my_wildcard]",
        "caused_by": {
            "type": "mapper_parsing_exception",
            "reason": "No handler for type [wildcard] declared on field [my_wildcard]"
        }
    },
    "status": 400
}

How much should I trust the documentation on ElasticSearch versions if the Amazon ES cluster with the same version number doesn’t have the feature?

You should probably read the opendistro docs instead. https://opendistro.github.io/for-elasticsearch-docs/

I checked the GitHub for Elastic.co’s open source version and it has it all of that open source distros release notes. Is the open source distro from Amazon really starting to fork that hard from Elastic’s open source version?

That’s something different. Check https://www.elastic.co/aws-elasticsearch-service

Yup gonna go with u/Nivud. Your issue isn’t an AWS issue.

Release notes for 7.9 linked from the GitHub repo for ElasticSearch:

https://www.elastic.co/guide/en/elasticsearch/reference/7.9/release-notes-7.9.0.html

on:

https://github.com/elastic/elasticsearch/releases

So why doesn’t the “7.9” that Amazon says I’m running have support for it?

The wildcard field type is a part of Elastics X-Pack feature set: https://www.elastic.co/subscriptions

OpenDistro, which AWS develops and are the base of the AWS ES service does not include any of the X-Pack features, as they’re license incompatible.

Ah, see the Elastic.co docs don’t really point out that it’s in an X-Pack. This is DEFINITELY one of those features I would like to see re-developed to support. Having leading wildcard queries that don’t such the life out of the search service would be nice.

AWS grabs the open source bits and hosts it for you while the primary maintainer keeps some special sauce pieces for their own hosting. It might be easier to just use elastic directly if you’re needing more features. In a similar vein, AWS’s DocumentDB is a crippled version of MongoDb, where MongoDB’s Atlas is far better and feature complete.

Yeah, they’re likely gonna be forking pretty hard https://www.elastic.co/blog/licensing-change

The wildcard field type is a part of Elastics X-Pack feature set: https://www.elastic.co/subscriptions

(…)

But the free version(elastic selfhosted) includes all this?

Yes, but the free “Basic” version is not the same as the open source version, which OpenDistro is based on.

Yeah, Elastic is killing themselves with X-Pack. I am about to move away from ElasticStack missing log alerts without X-Pack.

I don’t know how you’re planning to work around this, but it’s plausible to get fast prefix wildcards using a reverse token filter + edge ngram.

Do you have any links to articles that describe this technique by chance?

what are the biggest differences?

https://bigdataboutique.com/blog/dont-use-n-gram-in-elasticsearch-and-opensearch-6f0b48#alternatives-to-n-grams-in-elasticsearch

this explains what you are looking for

Same issue with version AWS Opensearch 7.10. Is this still not supported?