biothings / biothings_studio

Pre-configured & ready-to-use BioThings API development environment
Apache License 2.0
4 stars 3 forks source link

Allow to change type in mapping (and editing mapping in general) #14

Closed sirloon closed 5 years ago

sirloon commented 6 years ago

Currently, we can only adjust indexing rules (index or not, search by default). Broader discussion brings the topic of editing a mapping in general. Like, what if we want a field to be an "object" ? This would change the actual JSON structure (no inner-keys). Maybe an "Expert" mode where the whole JSON mapping could be edited in a text area ?

sirloon commented 5 years ago

Added a dropdown list with all core types from ES6, as well as a textarea for manual edit for advance usage. https://github.com/biothings/biothings.api/commit/ff34ff3195fb41d93fc38192c63123647855502c

screen shot 2018-12-12 at 4 35 44 pm