Skip to content

Commit

Permalink
Small improvement in docs, .gitignore (elastic#655)
Browse files Browse the repository at this point in the history
* Changed class name in docs: Rangefacet => RangeFacet.

* Added '.idea' to .gitignore, sys folder for PyCharm
  • Loading branch information
tarasinf authored and fxdgear committed Jun 15, 2017
1 parent e963c5f commit cf1ed50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ test_elasticsearch_dsl/htmlcov
docs/_build
.cache
venv
.idea
4 changes: 2 additions & 2 deletions docs/faceted_search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ There are several different facets available:
``HistogramFacet``
similar to ``DateHistogramFacet`` but for numerical values: ``HistogramFacet(field="rating", interval=2)``

``Rangefacet``
``RangeFacet``
allows you to define your own ranges for a numerical fields:
``Rangefacet(field="comment_count", ranges=[("few", (None, 2)), ("lots", (2, None))])``
``RangeFacet(field="comment_count", ranges=[("few", (None, 2)), ("lots", (2, None))])``

Advanced
~~~~~~~~
Expand Down

0 comments on commit cf1ed50

Please sign in to comment.