-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d84c6f
commit da46969
Showing
9 changed files
with
238 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../examples/imdb/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
|
||
############## | ||
Advanced usage | ||
============== | ||
############## | ||
|
||
TODO | ||
.. note:: | ||
|
||
This is a work in progress. Some sections still need to be furnished. | ||
|
||
* node and tree deserialization order | ||
* compound query insertion |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
########## | ||
Principles | ||
########## | ||
|
||
.. note:: | ||
|
||
This is a work in progress. Some sections still need to be furnished. | ||
|
||
|
||
**pandagg** is designed for both for "regular" code repository usage, and "interactive" usage (ipython or jupyter | ||
notebook usage with autocompletion features inspired by `pandas <https://github.com/pandas-dev/pandas>`_ design). | ||
|
||
This library focuses on two principles: | ||
|
||
* stick to the **tree** structure of Elasticsearch objects | ||
* provide simple and flexible interfaces to make it easy and intuitive to use in an interactive usage | ||
|
||
|
||
***************************** | ||
Elasticsearch tree structures | ||
***************************** | ||
|
||
Many Elasticsearch objects have a **tree** structure, ie they are built from a hierarchy of **nodes**: | ||
|
||
* a `mapping <https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html>`_ (tree) is a hierarchy of `fields <https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html>`_ (nodes) | ||
* a `query <https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html>`_ (tree) is a hierarchy of query clauses (nodes) | ||
* an `aggregation <https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html>`_ (tree) is a hierarchy of aggregation clauses (nodes) | ||
* an aggregation response (tree) is a hierarchy of response buckets (nodes) | ||
|
||
This library aims to stick to that structure by providing a flexible syntax distinguishing **trees** and **nodes**. | ||
|
||
***************** | ||
Interactive usage | ||
***************** | ||
|
||
Some classes are not intended to be used elsewhere than in interactive mode (ipython), since their purpose is to serve | ||
auto-completion features and convenient representations. | ||
|
||
They won't serve you for any other usage than interactive ones. | ||
|
||
Namely: | ||
|
||
* `pandagg.mapping.IMapping`: used to interactively navigate in mapping and run quick aggregations on some fields | ||
* `pandagg.client.Elasticsearch`: used to discover cluster indices, and eventually navigate their mappings, or run quick access aggregations or queries. | ||
* `pandagg.agg.AggResponse`: used to interactively navigate in an aggregation response | ||
|
||
These use case will be detailed in following sections. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../examples/imdb/ressources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters