Elasticsearch DSL Examples
In this directory you can see several complete examples demonstrating key
concepts and patterns exposed by
The alias migration example shows a useful pattern where we use versioned
test-blog-1, ...) to manage schema changes and
hides that behind an alias so that the application doesn't have to be aware of
the versions and just refer to the
test-blog alias for both read and write
For simplicity we use a timestamp as version in the index name.
A helper function using the composite aggregation to paginate over aggregation results.
BlogPost document with automatic classification using the percolator
As example using completion suggester to auto complete people's names.