Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 17, 2011
  1. @kimchy
Commits on Jan 10, 2011
  1. @kimchy

    limit the number of addresses to try and connect to when doing unicas…

    kimchy authored
    …t discovery with just the host and not the port to 5
  2. @kimchy
Commits on Jan 8, 2011
  1. @kimchy

    Highlighting: Sometimes highlighting returns empty fragments even tho…

    kimchy authored
    …ught there should be, closes #613.
Commits on Jan 7, 2011
  1. @kimchy

    build on aferreira improvements to handle empty parameters with no =,…

    kimchy authored
    … and improve component decoding logic
  2. @kimchy

    Adding test for edge cases of RestUtils.decodeQueryString()

    Adriano Ferreira authored kimchy committed
    When writing tests for the fix of decodeQueryString() to
    handle gracefully edge cases like:
    
        &a
        &a&b
    
    it arises the question of what behavior is desirable
    for these pathological cases (vs the regular p=v pairs).
    This change just skips them which is consonant
    to the preexisting code.
    
    To be thorough, we add tests for a bunch of edge cases, like:
    
        QUERY           PARSED PARAMS
    
        ?               {}
        ?&              {}
        ?=              { "": "" }
        ?a              {}
        ?p=v&a          { "p": "v" }
        ?p=v&a&p1=v1    { "p": "v", "p1": "v1" }
        ?a&b            {}
  3. @kimchy

    Make RestUtils.decodeQueryString() more robust in edge cases

    Adriano Ferreira authored kimchy committed
    The code of decodeQueryString() had some trouble with weird URLs:
    
    (1) an input like "uri?param&p=v" causes an exception to be thrown
    (2) an input like "uri?param1&param2" causes an infinite loop
    
    This could be verified against an ES server with requests like
    
        curl -XGET localhost:9200/test/_analyze?t&text=this+is+a+test
        # the exception stack trace shows up in logs
    
        curl -XGET localhost:9200/test/_analyze?t1&t2&text=this+is+a+test
        # never returns, never ends
    
    This change fixes these issues.
  4. @kimchy

    Minor changes to RestUtils.decodeQueryString() tests

    Adriano Ferreira authored kimchy committed
    Testing
    
        RestUtils.decodeQueryString("something", "something".indexOf('?') + 1, params);
    
    is not really checking decoding of an empty query.
    Instead, it is testing decoding of "something"
    as a query (because "something.index('?')+1" evaluates to 0).
    The parameter map is left empty because
    "malformed" pairs like "something" are currently skipped.
    
    Instead, this change modify this test to check the edge cases:
    
    + fromIndex >= queryString.length()
    + fromIndex < 0
Commits on Jan 6, 2011
  1. @kimchy
  2. @kimchy

    parse query with offset

    kimchy authored
Commits on Jan 5, 2011
  1. @kimchy

    update 0.14.3-SNAPSHOT

    kimchy authored
  2. @kimchy

    update 0.14.2 version

    kimchy authored
  3. @kimchy

    Add to node stats the number of times field cache was evicted due to …

    kimchy authored
    …memory constraints, closes #603.
  4. @kimchy

    try to be more predictable when doing pagination (still can return du…

    kimchy authored
    …plicates when going to different shards) by sorting on the shards results based on the shard id first
  5. @kimchy
  6. @kimchy
  7. @kimchy
  8. @kimchy

    Highlighting: The result of highlighting for a hit can contain data f…

    kimchy authored
    …rom another document, closes #600.
  9. @kimchy
  10. @kimchy
  11. @kimchy

    make settings prefix simpler and not bail when not prefixed with org.…

    kimchy authored
    …elasticsearch, allow to provide settings prefix for analyzer provider
Commits on Dec 29, 2010
  1. @kimchy

    update to 0.14.2 snapshot

    kimchy authored
  2. @kimchy

    update to release 0.14.1

    kimchy authored
  3. @kimchy
  4. @kimchy
  5. @kimchy
  6. @kimchy
Commits on Dec 27, 2010
  1. @kimchy

    release 0.14

    kimchy authored
  2. @kimchy
  3. @kimchy

    change scope to _score

    kimchy authored
  4. @kimchy
  5. @kimchy
  6. @kimchy

    upgrade to jython 2.5.2rc2

    kimchy authored
  7. @kimchy

    upgrade to groovy 1.7.6

    kimchy authored
Commits on Dec 26, 2010
  1. @kimchy
Something went wrong with that request. Please try again.