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

Colleciton _meta data disappears on Kuzzle restart #1268

Closed
xbill82 opened this issue Mar 20, 2019 · 1 comment
Closed

Colleciton _meta data disappears on Kuzzle restart #1268

xbill82 opened this issue Mar 20, 2019 · 1 comment
Assignees
Labels

Comments

@xbill82
Copy link
Contributor

xbill82 commented Mar 20, 2019

Expected Behavior

Set a _meta field on a collection, restart and be able to see the _meta field.

Current Behavior

The field has disappeared after the reload.

Possible Solution

Could this be tied to the indexCache?

Steps to Reproduce

See the Expected Behavior.

@xbill82 xbill82 added the bug label Mar 20, 2019
@xbill82 xbill82 changed the title Colleciton _meta data disappear on Kuzzle restart Colleciton _meta data disappears on Kuzzle restart Mar 25, 2019
Aschen added a commit that referenced this issue Apr 25, 2019
Adds the ability to define the `dynamic` property for collection mapping.  
This property can take 3 values:
  - "true": Stores the document and updates the collection mapping with inferred type
  - "false": Stores the document and does not update the collection mapping (fields are not indexed)
  - "strict": Rejects document

See https://www.elastic.co/guide/en/elasticsearch/guide/current/dynamic-mapping.html

This is configurable in the `kuzzlerc` within the `server.db.dynamic` property.   
The default value is `true` which allows the user to push arbitrary documents to Kuzzle and Elasticsearch will try to infer the corresponding mapping. (This is the current behaviour in Kuzzle)

Admin-Console (wip): kuzzleio/kuzzle-admin-console#502

Documentation: kuzzleio/documentation#271

## Other changes

Fixed the usage of the `_meta` property for ES collection. This property must be passed to each call to `putMapping`.   
See #1268

chmod 777 on `node_modules/` because I'm tired of doing `sudo chmod +x node_modules/.bin/*` to run test locally
@Aschen
Copy link
Contributor

Aschen commented May 11, 2019

#1257

@Aschen Aschen closed this as completed May 11, 2019
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

2 participants