Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 21, 2012
  1. Will Kahn-Greene
Commits on Sep 20, 2012
  1. Will Kahn-Greene

    Update CHANGELOG

    willkg authored
Commits on Sep 4, 2012
  1. Will Kahn-Greene

    Implement MappingType and rewrite everything around it

    willkg authored
    tl;dr: This is a big rewrite with huge API-breaking changes.
    This replaces the old model-type system with the new MappingType
    system. This adds a degree of separation between models (traditionally
    stored in a db) and documents (stored in ElasticSearch).
    Untyped S works just like in v0.4 with the exception that if you
    don't specify values_dict or values_list, you now get back a list
    of DefaultMappingType which are slightly more useful than dicts.
    You can now create an S typed by a MappingType which makes it easier
    to specify the index and doctype, but also allows you to tie
    business logic to search results and also tie that back to db
    objects in a lazy-loading way. For example, say you had a description
    field and wanted to have a truncated version of it::
        class MyMappingType(MappingType):
            def description_truncated(self):
                return self.description[:100]
        res = list(S(MyMappingType).query(description__text='stormy night'))[0]
        print res.description_truncated()
    Also, inextricably linked with this commit is a minor rewrite of the
    test suite. They should run faster now, are better organized, and should
    be easier to write in the future. doesn't look like it
    was written by a shrewdness of apes any more.
    Also fixed a bug where `fields` was affected by ``values_list`` and
    ``values_dict`` calls---the two need to be separated.
  2. Will Kahn-Greene
  3. Will Kahn-Greene

    Tweak MLT code; add docs

    willkg authored
    * tweaks the MLT class so that s isn't required anymore
    * adds an es argument
    * adds documentation
    * adds two more tests to make sure the s vs. index/doctype works
Commits on Aug 30, 2012
  1. Will Kahn-Greene
Commits on Aug 24, 2012
  1. Will Kahn-Greene

    Expose version in elasticutils.__version__

    willkg authored
    This also renames elasticutils.VERSION to elasticutils.PYES_VERSION
    to avoid convusion.
Commits on Aug 17, 2012
  1. Will Kahn-Greene

    Issue 51. Implement .demote()

    willkg authored
    This implements boosting query support, though it does it by dealing
    with the positive and negative queries as two separate things.
Commits on Jul 31, 2012
  1. Will Kahn-Greene

    Prepare for 0.4 release

    willkg authored
  2. Will Kahn-Greene

    Change format_text to format_explanation

    willkg authored
    Also fixes issues with it.
Commits on Jul 28, 2012
  1. Will Kahn-Greene

    Update CHANGELOG

    willkg authored
Commits on Jul 21, 2012
  1. Will Kahn-Greene

    Update CHANGELOG

    willkg authored
Commits on Jul 19, 2012
  1. Will Kahn-Greene

    Update CHANGELOG

    willkg authored
Commits on Jul 3, 2012
  1. Will Kahn-Greene

    Issue 43. Reimplement facets

    willkg authored
    This reworks facets so that the API is cleaner and easier to use. It
    now has a .facet() which acts as a shorthand but doesn't do things
    you might not expect and it has a .facet_raw() which yields unto
    you the full expressive power of the ES facet.
    This adds some more tests and documentation and updates the CHANGELOG,
Commits on Jul 2, 2012
  1. Will Kahn-Greene
  2. Will Kahn-Greene

    Update docs

    willkg authored
    * updates and clarifies a bunch of bits in the documentation.
    * updates the documentation in respects to typed S and untyped S
      and search results and all that.
    * went through and tested the facet code. This updates the facet
    * PEP-257 fixes
Commits on Jun 28, 2012
  1. Will Kahn-Greene

    Issue 41. Move django bits to contrib

    willkg authored
    This reworks the codebase so that it doesn't require Django. There
    are some API breaking things here, but hopefully the changes required
    for users will be minimal.
Commits on Jun 26, 2012
  1. Will Kahn-Greene
Commits on Jun 2, 2012
  1. Will Kahn-Greene

    Cleanup for 0.3 release

    willkg authored
    This release covers everything we've done so far before we start making
    some bigger changes.
    I also changed the author information to me representing that Dave has
    passed the torch for project maintenance to me.
    Also included some of jezdez's changes to project scaffolding files. Thank
Something went wrong with that request. Please try again.