-
Notifications
You must be signed in to change notification settings - Fork 88
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 index mapping #51
Comments
@dijadev this is a elasticsearch question, I would suggest you to follow https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html |
I found this issue by Google. I think @dijadev was aware of insert/update Elasticsearch mappings by using the REST API. I guess what @dijadev meant is a way to define the mapping (or the template) from ScrapyElasticsearch pipeline settings. For an example:
In I got this idea from Logstash (I am sure you guys know what it is). It also has the configuration to define the template ( I hope @jayzeng may consider this as a feature request. |
@hieu-n thanks for elaborating the issue, |
@jayzeng I think putting the mapping in a separate json file as logstash does is a good idea, because the mapping could be lengthy and complex. However, it is up to you to decide. |
@hieu-n Yah it's exactly what I was looking for, but finally I defined the mapping in elasticsearch directly as described in elasticseach doc.. |
Hi!
How could I define a mapping for each field?
I want all my index fields to be indexed with mapping "not_analyzed" so i can get exacte values in search results.
Thank you,
The text was updated successfully, but these errors were encountered: