Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Commit

Permalink
Update CHANGELOG; fix docstring typo
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Sep 13, 2013
1 parent 8102b9a commit 18da449
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions CHANGELOG
Expand Up @@ -6,6 +6,24 @@ What's new in ElasticUtils
:local:


Version 0.8.1: September 13th, 2013
===================================

**API-breaking changes:**

* **Indexable.index overwrite_existing argument default changed**

In v0.8, we added the ``overwrite_existing`` argument, but made
it default to False. That's different than what pyelasticsearch
does.

In v0.8.1, we changed the default ot True which is in line with
what pyelasticsearch does.

If you were depending on the old behavior, then you need to
update your indexing code to set ``overwrite_existing=False``.


Version 0.8: August 19th, 2013
==============================

Expand All @@ -20,6 +38,21 @@ Version 0.8: August 19th, 2013

You can ignore this if you're not using the Django celery tasks.

* **Indexable.index arguments changed**

pyelasticsearch changed arguments, so we did, too. We dropped
the ``force_insert`` argument (which wasn't working) and picked
up ``overwrite_existing``.

``overwrite_existing`` defaults to False which means it will
**not** overwrite existing documents in the index.

.. Note::

This was a mistake since pyelasticsearch defaults to True.
We changed this in 0.8.1.


**Changes:**

* **Added support for ``range`` queries and filters.**
Expand Down
2 changes: 1 addition & 1 deletion elasticutils/__init__.py
Expand Up @@ -1965,7 +1965,7 @@ def index(cls, document, id_=None, overwrite_existing=True, es=None,
like a character name from a Lovecraft novel.
:arg overwrite_existing: if ``True`` overwrites existing documents
+ of the same ID and doctype
of the same ID and doctype
:arg es: The `ElasticSearch` to use. If you don't specify an
`ElasticSearch`, it'll use `cls.get_es()`.
Expand Down

0 comments on commit 18da449

Please sign in to comment.