Sunday, October 11, 2015

Elasticsearch notes

1. Use marvel like a scratchpad for trying out GET/POST/PUT etc
2. PUT needs an id, POST generates one
3. ES auto generates field type mapping, can be overridden
4. Analyzers : whitespace, camelCase,regexp, Hindi etc
5. boost a field
6. search queries can be very structured, AND, OR of multiple fields
7. index is divided into shards. each shard can have replicas.
8. document routing - which document goes to which shard
9. prefix search, range search, 
10. filter query : doesn't compute score hence fast
11. match query computes score, so slow


No comments:

Blog Archive