Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 5, 2015
  1. @willkg

    Deprecating this project

    willkg authored
Commits on Dec 29, 2014
  1. @tymofij
Commits on Nov 14, 2014
  1. @noahmiller

    Update django.rst

    noahmiller authored
    #278: added missing @classmethod to extract_document.
Commits on Oct 10, 2014
  1. @willkg
  2. @willkg

    Prepare for 0.10.2 release

    willkg authored
Commits on Sep 22, 2014
  1. @willkg
  2. @willkg

    Fix migration document to clarify versions

    willkg authored
    * update migration document to clarify ES versions
    * clean up some langauge to make it clearer
Commits on Sep 11, 2014
  1. @willkg

    Fix index creation problems

    willkg authored
    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.
Commits on Aug 30, 2014
  1. @patrick91

    Fix typo.

    patrick91 authored
Commits on Aug 28, 2014
  1. @patrick91

    Added some docs.

    patrick91 authored
Commits on Aug 19, 2014
  1. @willkg

    Update install requirements

    willkg authored
Commits on Aug 18, 2014
  1. @willkg

    Update migration document

    willkg authored
  2. @willkg

    Fix S's values_list/dict re: ES 1.0

    willkg authored
    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.
Commits on Aug 12, 2014
  1. @willkg

    Add rough docs for migrating to ES 1.0

    willkg authored
    These will be improved over time, but it shows the order of steps to
    upgrade to reduce downtime.
    
    Fixes #247
  2. @willkg

    Add "in" action to the table

    willkg authored
    Fixes #243
Commits on Aug 1, 2014
  1. @willkg

    Fix release process

    willkg authored
Commits on Jun 24, 2014
  1. @kcolton
Commits on May 20, 2014
  1. @willkg
Commits on Apr 24, 2014
  1. q = S().filter(or_={'style': 'korean', 'style'='mexican'})

    Mads Jensen authored
    corrected into
       q = S().filter(or_={'style': 'korean', 'style':'mexican'})
Commits on Apr 3, 2014
  1. @willkg

    Update CHANGELOG

    willkg authored
  2. @willkg

    Update sample_facets.py

    willkg authored
Commits on Mar 26, 2014
  1. @willkg

    Add elasticutils.estestcase.ESTestCase

    willkg authored
    This makes the ESTestCase "public". Previously, it was intertwined with
    our test suite.
    
    Further, it adds documentation for it to the api.
    
    In the process of doing that, I nixed a bunch of skip_tests stuff. If
    someone doesn't want it to run tests, they should wrap the class on
    their own. That's a lot easier than us providing scaffolding that is
    either generic (hard) or requires a specific test framework
    (pain-in-the-ass-for-users).
    
    Fixes #215
  2. @willkg
  3. @willkg
Commits on Mar 25, 2014
  1. @eire1130 @willkg

    Docs for FacetResult

    eire1130 authored willkg committed
Commits on Mar 18, 2014
  1. @willkg

    Move results metadata to es_meta object

    willkg authored
    Django templates don't allow you to expose variables that start with an
    _. So having:
    
        obj._highlight
    
    sucked.
    
    We've got a fair number of these metadata items and I'm concerned with
    each new one we add, we increase the likelihood that there's a naming
    conflict with actual data.
    
    So this moves all those items into an es_meta object which you can
    access like this:
    
        obj.es_meta.highlight
    
    The one exception is _id--you can now access the id Elasticsearch gives
    the document with both:
    
        obj._id
    
    and:
    
        obj.es_meta.id
    
    Fixes #205
Commits on Mar 13, 2014
  1. @willkg

    Fix docs regarding tense

    willkg authored
Commits on Mar 12, 2014
  1. @willkg

    Change S._build_query() to S.build_search()

    willkg authored
    * make _build_query public (and change the name)
    * add to_json utility function
    * add tests for to_json
    * add documentation for utility functions
    
    Fixes #218
Commits on Mar 7, 2014
  1. @willkg

    Fix README and copyright dates

    willkg authored
Commits on Feb 28, 2014
  1. @willkg

    Switch .all() to .everything()

    willkg authored
    * switch the old .all() to .everything()
    * change .all() to be more like what Django ModelManager/QuerySet does
    
    Fixes #200
Commits on Jan 31, 2014
  1. @koterpillar @willkg

    Note that suggestions are only supported on ES 0.90+

    koterpillar authored willkg committed
  2. @koterpillar @willkg

    Update documentation

    koterpillar authored willkg committed
  3. @koterpillar @willkg

    Suggestions support

    koterpillar authored willkg committed
    Conflicts:
    	docs/api.rst
    	elasticutils/__init__.py
    	elasticutils/tests/test_query.py
  4. @willkg

    Merge pull request #186 from infoxchange/search_type

    willkg authored
    Search type support
  5. @willkg

    Merge pull request #193 from kevinastone/master

    willkg authored
    Added support for a `size` parameter to facets.
Something went wrong with that request. Please try again.