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

Add support of custom fields attribute #16

Closed
To-om opened this issue Jun 19, 2017 · 0 comments
Closed

Add support of custom fields attribute #16

To-om opened this issue Jun 19, 2017 · 0 comments
Assignees
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Jun 19, 2017

Custom fields attribute is a JSON object that contain any number of fields. Each field contains a nested object where key is the field type. Supported types are: string, number, date and boolean.

This structure make ElasticSearch mapping stable (same field name have always the same type).

Each field may also contain the key order which is used to order them in a list.

Here is an example of valid custom fields:

{
  "fieldName": { "number": 42, "order": 2 },
  "otherField": { "boolean": true, "order": 1 },
  "thirdField": { "date": 1497861727 }
}

Elastic4play accepts field with multiple types (e.g. { "otherField": { "boolean": true, "number": 1 } }.

@To-om To-om self-assigned this Jun 19, 2017
@To-om To-om added this to the 1.2.0 milestone Jun 19, 2017
To-om added a commit that referenced this issue Jun 19, 2017
@To-om To-om closed this as completed Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant