Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Mapping options (multifields, etc) #57

Closed
andrewatwood opened this issue May 25, 2016 · 5 comments
Closed

Mapping options (multifields, etc) #57

andrewatwood opened this issue May 25, 2016 · 5 comments

Comments

@andrewatwood
Copy link

Any support for custom mapping? Need to work with some multifields and can't see where to pass these options to the elasticsearchclient.

@katowulf
Copy link
Contributor

I don't know what multifields are or custom mappings, sorry. But you can put whatever you want into queryObj as this is directly passed into the ES API.

@andrewatwood
Copy link
Author

andrewatwood commented May 25, 2016

Good to know.

Turns out the issue I was having was solved by setting custom mapping on your index before ever running Flashlight. As long as you have those options set before the first document is indexed, anything added will follow those rules. Thanks again!

@kidequinox
Copy link

@andrewatwood can you provide details in how you setup custom mapping prior to running firebase ?

@andrewatwood
Copy link
Author

@kidequinox yeah just use curl to PUT the JSON of the mapping (https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html) before running Flashlight and you'll be good to go. Will have to delete and re-map the index whenever you need to change it but if it's right from the beginning it'll work great.

@kidequinox
Copy link

@andrewatwood Thanks!!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants