Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 21, 2012
  1. @willkg
  2. @willkg

    Fix boosted text_phrase queries

    willkg authored
    text_phrase queries are really just text queries, so they require the
    same value_key name. This fixes that and also writes a test for boosts
    that runs through ES so we can verify it doesn't kick up a
    SeachPhaseWhateverThingy.
  3. @willkg
  4. @willkg
Commits on Sep 20, 2012
  1. @willkg

    Update CHANGELOG

    willkg authored
  2. @willkg

    Fix error from last commit

    willkg authored
    It's MaxRetryError--not MaxRetryException.
  3. @willkg

    Fix es_required_or_50x decorator

    willkg authored
    This tweaks the es_required_or_50x decorator to handle other ElasticSearch
    errors and also improves the documentation. It also allows for template
    overrides and nixes the msg arguments--they seemed less flexible.
    
    Note: These decorators have no tests in the test suite, yet.
Commits on Sep 19, 2012
  1. @willkg
  2. @willkg

    Add note about id and .index()

    willkg authored
Commits on Sep 14, 2012
  1. @willkg

    Issue 74. Fix F operand mutations

    willkg authored
    Operations on F shouldn't mutate the operands. This fixes the code
    so it does a deepcopy of the filters before doing things with them.
Commits on Sep 11, 2012
  1. @willkg
  2. @willkg
Commits on Sep 7, 2012
  1. @willkg

    Issue 70. Fix date_histogram handling.

    willkg authored
    * add handling for date_histogram in facet_counts
    * fix facet_counts to raise an exception rather than silently act
      dumb if it doesn't recognize the _type
Commits on Sep 4, 2012
  1. @willkg

    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. test_django.py 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. @willkg
  3. @willkg

    Add James Socol to CONTRIBUTORS

    willkg authored
    Bah--he contributed ages ago and I missed adding him.
  4. @willkg

    Set version to 0.6.dev

    willkg authored
  5. @willkg
  6. @willkg

    Tweak the search chapter title

    willkg authored
    Since it uses the ES Search API, it's better to call it "Searching
    with S" rather than "Querying with S".
  7. @willkg

    Re-add index to TOC.

    willkg authored
  8. @willkg

    Issue 54. Add docs for order-by

    willkg authored
    This also adds API documentation. It's not great because the docstrings
    need work, but it's better!
  9. @willkg

    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
      correctly
Commits on Aug 31, 2012
  1. @willkg

    Add Ricky to list

    willkg authored
  2. @rlr

    Fix Issue #53 - Implement more like this.

    rlr authored
    Adds a MLT class for making _mlt API calls.
  3. @willkg

    DEFAULT_INDEXES and DEFAULT_DOCTYPES are plural

    willkg authored
    These two defaults were wrong--they're both plural and should be a list
    of strings. Other values are wrong.
    
    This fixes that and also fixes a bunch of tests that broke because of it.
Commits on Aug 30, 2012
  1. @willkg
  2. @willkg

    Issue 63. Fix bad field action silent errors

    willkg authored
    This fixes query processing so if you have an invalid field action, it
    now raises an exception--just like filters.
  3. @willkg
Commits on Aug 27, 2012
  1. @willkg

    Add Chris to CONTRIBUTORS

    willkg authored
  2. @willkg

    Merge pull request #62 from wraithan/patch-1

    willkg authored
    Add in missing colon in debugging docs
  3. @wraithan
  4. @willkg

    Overhaul Django SearchMixin and docs

    willkg authored
    * overhauls SearchMixin to be more useful and flexible but continue to
      have useful defaults
    * this overhauls a lot of the documentation for the contrib.django stuff
      and makes more of it correct
Commits on Aug 24, 2012
  1. @willkg

    Fix django reqs file; add docs reqs file

    willkg authored
    This should fix autodoc stuff on ReadTheDocs.
  2. @willkg
  3. @willkg

    Expose version in elasticutils.__version__

    willkg authored
    This also renames elasticutils.VERSION to elasticutils.PYES_VERSION
    to avoid convusion.
Something went wrong with that request. Please try again.