Граф коммитов

486 Коммитов

Автор SHA1 Сообщение Дата
Will Kahn-Greene b880cc5d51 Update version and changelog for 0.10.3 release 2015-03-04 20:09:08 -05:00
Will Kahn-Greene b751188b66 Merge pull request #289 from mythmon/patch-1
Add term_stats facet type.
2015-03-04 20:03:04 -05:00
Mike Cooper 6ab4dbdc40 Add term_stats facet type. 2015-03-04 16:35:39 -08:00
Will Kahn-Greene 342d5f6942 Deprecating this project 2015-01-05 15:38:21 -05:00
Will Kahn-Greene 05736ec73f Cosmetic: Fix CHANGELOG typo 2015-01-05 15:38:21 -05:00
Will Kahn-Greene 752eed9d45 Merge pull request #284 from tymofij/patch-1
fix links in dev_conventions.rst
2014-12-29 16:01:52 -05:00
Tim Babych 96c09321d2 fix links in dev_conventions.rst 2014-12-29 22:55:51 +02:00
Will Kahn-Greene 17e3f97b0e Merge pull request #281 from noahmiller/patch-1
Update CONTRIBUTORS
2014-11-14 09:31:55 -05:00
Noah 6d9ed37653 Update CONTRIBUTORS
Added myself to CONTRIBUTORS for patch #280.
2014-11-14 09:21:27 -05:00
Will Kahn-Greene c507f3a0a5 Merge pull request #280 from noahmiller/patch-1
Update django.rst
2014-11-14 09:16:11 -05:00
Noah fa519e948f Update django.rst
#278: added missing @classmethod to extract_document.
2014-11-13 21:08:53 -05:00
Will Kahn-Greene bcec897a60 Prepare for 0.11 development 2014-10-10 09:59:27 -04:00
Will Kahn-Greene 686aa9b046 Add note about tag notes to releaseprocess 2014-10-10 09:58:00 -04:00
Will Kahn-Greene 73bbc5142b Prepare for 0.10.2 release 2014-10-10 09:55:39 -04:00
Will Kahn-Greene e5b52170ea Merge pull request #267 from willkg/fix-bulk-monkeypatch
Fix bulk monkeypatch to work with non-insert op_types
2014-10-10 09:18:28 -04:00
Will Kahn-Greene 2109ec06f4 Fix bulk monkeypatch to work with non-insert op_types
This also adds a test for the monkeypatch to make sure it works with the
various bulk op_types.

Fixes #266
2014-10-09 13:42:27 -04:00
Will Kahn-Greene 1ce9b0724b Update versions for 0.10.1 release 2014-09-22 15:42:18 -04:00
Will Kahn-Greene 4b79616adf Fix issues with tests and django 1.7
Fixes #259
2014-09-22 15:30:45 -04:00
Will Kahn-Greene 920d63e0cf Update CHANGELOG for 0.10.1 2014-09-22 14:48:23 -04:00
Will Kahn-Greene b8ecae01f7 Change StandardError to Exception 2014-09-22 14:44:55 -04:00
Will Kahn-Greene be75937f5c Add Bert Vanderbauwhede to CONTRIBUTORS 2014-09-22 14:44:19 -04:00
Will Kahn-Greene b826176b7b Add test case for infinite recursion issue when pickling 2014-09-22 14:21:11 -04:00
Will Kahn-Greene 52b990052c Merge pull request #263 from batlock666/master
Fix infinite recursion when unpickling a mapping type instance
2014-09-22 14:20:37 -04:00
Will Kahn-Greene a7cd38ad1c Fix migration document to clarify versions
* update migration document to clarify ES versions
* clean up some langauge to make it clearer
2014-09-22 14:08:46 -04:00
Will Kahn-Greene 8e90ac9eb9 Merge pull request #262 from willkg/update-es-py
Update requirements to elasticsearch >= 1.0
2014-09-22 11:09:55 -04:00
Bert Vanderbauwhede b3e8377d88 Fix infinite recursion when unpickling a mapping type instance 2014-09-18 10:10:29 +02:00
Will Kahn-Greene f9f7ede3e3 Update requirements to elasticsearch >= 1.0
This inverts the monkeypatch so that we can continue to work with
ElasticUtils 0.90, but use elasticsearch-py >= 1.0. That makes things a
lot easier going forward.

Fixes #261
2014-09-11 14:47:36 -04:00
Will Kahn-Greene 3b800a8a45 Fix travis failures
* Add more Elasticsearch versions to the Travis matrix.
* ElasticUtils may not work with Django 1.7. At a minimum, we know that
  tests don't pass. For now, restricting the Django version to <1.7.
2014-09-11 11:34:04 -04:00
Will Kahn-Greene 8084e7fc90 Tweaking the version for 0.10.1 development
We're going to push out a 0.10.1 before moving on to 0.11.
2014-09-11 11:17:47 -04:00
Will Kahn-Greene c2cf9476ce Fix index creation problems
When defining a mapping, the fields need to be in a 'properties' dict.
Elasticsearch < 1.2 didn't complain about these, but Elasticseach 1.2
does.
2014-09-11 11:10:48 -04:00
Will Kahn-Greene e6fb02341f Add Patrick Arminio to CONTRIBUTORS 2014-09-04 11:11:44 -04:00
Will Kahn-Greene e41193d7db Merge pull request #255 from patrick91/distance_filter
Distance filter
2014-09-04 11:11:21 -04:00
Patrick Arminio cef64d6453 Added distance test with real data. 2014-09-02 17:50:50 +02:00
Patrick Arminio a364d9de36 Fix typo. 2014-08-30 11:15:22 +02:00
Patrick Arminio dc89e146b0 Added some docs. 2014-08-28 16:23:12 +02:00
Patrick Arminio c8e7d2b110 Added distance filter. 2014-08-28 16:16:00 +02:00
Will Kahn-Greene 2b301e1258 Update version for v0.11 development 2014-08-19 09:15:15 -04:00
Will Kahn-Greene 35e963c7cc Update version for 0.10 release 2014-08-19 09:06:50 -04:00
Will Kahn-Greene f3795313db Update CONTRIBUTORS 2014-08-19 09:05:39 -04:00
Will Kahn-Greene b5e3636f8a Update install requirements 2014-08-19 09:01:52 -04:00
Will Kahn-Greene 7c25204417 Update text in CHANGELOG re ES versions 2014-08-19 08:53:42 -04:00
Will Kahn-Greene 7fb09aed30 Update migration document 2014-08-18 11:23:04 -04:00
Will Kahn-Greene 03f4094e51 Fix S's values_list/dict re: ES 1.0
This makes some pretty big changes.

1. .values_list() and .values_dict() will now **always** send the
   "fields" property to ES. If you don't specify any field arguments,
   then "fields=[*]". If you do specify fields arguments, then it'll
   be that list of fields.

2. Elasticsearch 1.0 changed the shape of what gets returned--all
   values are lists when you specify the "fields" property. To
   make Elasticsearch 0.90 and Elasticsearch 1.0 consistent, we
   now convert any non-list values into list values for Elasticsearch
   0.90.

Wait, wat? Prior to this commit, you'd have the following:

    # Elasticsearch 0.90
    >>> list(S().values_list())
    [(501, 'frank'), (602, 'sam')]           # values are ints and strings

    >>> list(S().values_list('id', 'name'))
    [(501, 'frank'), (602, 'sam')]           # values are ints and strings

    # Elasticsearch 1.0
    >>> list(S().values_list())
    [(501, 'frank'), (602, 'sam')]           # values are ints and strings

    >>> list(S().values_list('id', 'name'))
    [([501], ['frank']), ([602], ['sam'])]   # values are all lists

After this change, we have this (assuming id and name fields are stored):

    # Elasticsearch 0.90
    >>> list(S().values_list())
    [([501], ['frank']), ([602], ['sam'])]

    >>> list(S().values_list('id'))
    [([501], ['frank']), ([602], ['sam'])]

    # Elasticsearch 1.0
    >>> list(S().values_list())
    [([501], ['frank']), ([602], ['sam'])]

    >>> list(S().values_list('id'))
    [([501], ['frank']), ([602], ['sam'])]

If you plan to call .values_list() and .values_dict() with no arguments,
you must add "store: True" to your mappings for the fields you want to
get back.
2014-08-18 11:23:04 -04:00
Will Kahn-Greene 14cc365519 Invert Python2 checks to use PY3
six didn't always have a PY2, so this makes elasticutils work with older
versions of six.
2014-08-13 09:39:53 -04:00
Will Kahn-Greene 96583be68f Add rough docs for migrating to ES 1.0
These will be improved over time, but it shows the order of steps to
upgrade to reduce downtime.

Fixes #247
2014-08-12 17:02:26 -04:00
Will Kahn-Greene 22572fb1a8 Add "in" action to the table
Fixes #243
2014-08-12 15:04:07 -04:00
Will Kahn-Greene cb1183c7ca Merge pull request #242 from willkg/241-fix-bulk-indexing
Fix bulk indexing problems with Elasticsearch 1.0
2014-08-12 15:01:36 -04:00
Will Kahn-Greene 07284b980f Fix bulk indexing problems with Elasticsearch 1.0
In order for ElasticUtils to work for both Elasticsearch 0.90 and
Elasticsearch 1.0 using elasticsearch-py 0.4.5, we need to do some
monkey-patching of elasticsearch-py.

In this case, calling Elasticsearch.client.bulk() returns an 'ok' field
with ES 0.90 and a 'status' field with ES 1.0. This patch sets the 'ok'
field based on the 'status' field so that the bulk indexing
infrastructure in elasticsearch-py 0.4.5 is testing the right thing and
not raising BulkIndexingErrors.

Fixes #241
2014-08-12 14:57:41 -04:00
Will Kahn-Greene 54e32165a0 Fix release process 2014-08-01 15:48:22 -04:00
Will Kahn-Greene 6ab24d7f53 Merge pull request #244 from kcolton/patch-1
Small doc change. + Missing objects manager
2014-06-30 23:35:47 -04:00