Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add unknown field to mapping #72

Open
martiis opened this issue Aug 28, 2015 · 3 comments
Open

Ability to add unknown field to mapping #72

martiis opened this issue Aug 28, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@martiis
Copy link
Contributor

martiis commented Aug 28, 2015

Unknown fields should have index=not_analyzed.

@martiis
Copy link
Contributor Author

martiis commented Aug 28, 2015

Validator now passes unknown fields to elasticsearch, also this can be disabled through configuration (docs in progress). But for the mapping dynamic_templates must be used, but they are not released yet in elasticsearch bundle.

dynamic template looks like this:

PUT ongr/_mapping/product

{
    "product": {
        "dynamic_templates": [
            {
                "not_analyzed": {
                    "match": "*",
                    "mapping": {
                        "type": "string",
                        "index": "not_analyzed"
                    }
                }
            }
        ]
    }
}

Just modify type if you need so. This will be possible to set in annotations in next elasticsearch bundle release. Pull request.

Tested by updating mapping by hand, works.

@martiis martiis added qa and removed in progress labels Aug 28, 2015
@saimaz
Copy link
Member

saimaz commented Oct 19, 2015

@martiis is there any chance that you could append this info in the docs?

@saimaz
Copy link
Member

saimaz commented Dec 15, 2015

There should be an article in the docs how to add a dynamic templates to the elasticsearch bundle and then simply insert fields to the elasticsearch type. In this case document object won't be used.

@saimaz saimaz added this to the v1.0.0 milestone Dec 15, 2015
@saimaz saimaz modified the milestones: v1.1.0, v1.0.0 Jan 4, 2016
@saimaz saimaz added the planned label Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants