Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvement to index_exists? using correct es api call #51

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open

Minor improvement to index_exists? using correct es api call #51

wants to merge 73 commits into from

Commits on Mar 25, 2013

  1. Allow multi_get to take a hash

    This patch lets you pass arbitrary multi_get
    queries to elasticsearch. Before this patch, there 
    was no way to select the fields to return.
    erickt authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    3fce337 View commit details
    Browse the repository at this point in the history
  2. ignore Gemfile.lock

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    967ffad View commit details
    Browse the repository at this point in the history
  3. bump version to 0.1.4

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    bd8d510 View commit details
    Browse the repository at this point in the history
  4. Expose getting aliases for an index.

    erickt authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    b203826 View commit details
    Browse the repository at this point in the history
  5. add spec for updating and getting aliases

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    68cc4d8 View commit details
    Browse the repository at this point in the history
  6. bump version

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    da0968a View commit details
    Browse the repository at this point in the history
  7. move patron spec in Gemfile to gemspec

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    573be55 View commit details
    Browse the repository at this point in the history
  8. set default index and type from server url

    This is helpful on Heroku where server urls include the index.
    
    ElasticSearch.new("http://127.0.0.1:9200/index/type" sets default_index
    to "index" and default_type to "type". You can still change them with
    the default scope accessors and by passing :index and :type options.
    
    Fixes #31
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    e64fb9c View commit details
    Browse the repository at this point in the history
  9. don't require a specific bundler

    Bundler 1.1 is the business.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    c7cb0dd View commit details
    Browse the repository at this point in the history
  10. use default index in get_settings and get_aliases

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    2c786db View commit details
    Browse the repository at this point in the history
  11. update README to show new url instantiation

    README needs some love! It kinda sucks.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    08b0347 View commit details
    Browse the repository at this point in the history
  12. bump version to 0.1.6

    New in this version:
    
    * Compatibility with Heroku ELASTICSEARCH_URL
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    61b7efb View commit details
    Browse the repository at this point in the history
  13. test on travis now that ES is available

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    6a7dfe6 View commit details
    Browse the repository at this point in the history
  14. don't run coverage on rbx

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    896dea5 View commit details
    Browse the repository at this point in the history
  15. don't run on jruby

    Will need to switch to http and json abstraction libraries first.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    d69c0da View commit details
    Browse the repository at this point in the history
  16. add build status to readme

    [ci skip]
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    db45356 View commit details
    Browse the repository at this point in the history
  17. convert readme to markdown

    [ci skip]
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    6446b44 View commit details
    Browse the repository at this point in the history
  18. actually update the readme

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    5be651f View commit details
    Browse the repository at this point in the history
  19. add supported rubies to readme

    [ci skip]
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    95bc4d0 View commit details
    Browse the repository at this point in the history
  20. Fix error in README.md (otherwise: "URI::InvalidURIError: bad URI(is …

    …not URI?): 127.0.0.1:9200")
    rb2k authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    7cef043 View commit details
    Browse the repository at this point in the history
  21. Fix markdown in API examples

    rb2k authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    f1cd92d View commit details
    Browse the repository at this point in the history
  22. restore the ability to connect with just ip:port

    If uri fails to parse, just use the connect string as given.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    ca17315 View commit details
    Browse the repository at this point in the history
  23. add thrift to the Gemfile

    For testing the thrift transport
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    1e40e27 View commit details
    Browse the repository at this point in the history
  24. add thrift example to readme

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    b908d45 View commit details
    Browse the repository at this point in the history
  25. use MultiJson instead of Yajl directly

    This increases platform compatibility and future proofs against better
    json libraries than yajl (like oj). Rails is using MultiJson so it isn't
    likely to go away.
    
    Both versions of the MultiJson api are supported.
    
    fixes #35
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    f4134b1 View commit details
    Browse the repository at this point in the history
  26. extract common code into a method

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    2f87620 View commit details
    Browse the repository at this point in the history
  27. remove yard

    Use rubydoc.info instead
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    6d15b22 View commit details
    Browse the repository at this point in the history
  28. use faraday for escaping

    The old rack escape doesn't work with utf8 multibyte strings in ruby
    1.9. Relying on Faraday's popularity to take care of that.
    
    If Faraday doesn't work out, Rack's new escape is supposed to be pretty
    good.
    
    This commit also removes support for ruby 1.8.6. Faraday only
    supports 1.8.7+, so the rubberband dependency is bumped too.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    76d9cc1 View commit details
    Browse the repository at this point in the history
  29. replace patron with faraday

    Patron relies on a C extension so it is not compatible with JRuby.
    Faraday supports multiple backends so it will work on more platforms.
    
    fixes #36
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    2cfc87c View commit details
    Browse the repository at this point in the history
  30. add exception messages to re-raises in non-standard transports

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    00cee85 View commit details
    Browse the repository at this point in the history
  31. remove reference to patron in comments

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    a5fd699 View commit details
    Browse the repository at this point in the history
  32. use attr_accessor for current_server

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    551dd86 View commit details
    Browse the repository at this point in the history
  33. add connection accessor to client

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    61983d8 View commit details
    Browse the repository at this point in the history
  34. rename @server_list to @servers

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    10c102a View commit details
    Browse the repository at this point in the history
  35. don't override inspect

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    354ff8f View commit details
    Browse the repository at this point in the history
  36. allow transport to be an object

    This allows users to pass a transport already created in case
    Rubberband doesn't know how to create it properly.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    e77b5dc View commit details
    Browse the repository at this point in the history
  37. take a connection block for transports that use it

    Faraday can take a block on connect to configure middleware and
    connection options. Now ElasticSearch.new takes a block and passes it
    down to the transport also.
    
    The block will only be executed when the transport connects. This might
    not be right away and it might happen multiple times.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    3aa0e1e View commit details
    Browse the repository at this point in the history
  38. update ancient User-Agent string

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    3ef8b27 View commit details
    Browse the repository at this point in the history
  39. bump minor version

    Hopefully 1.0 soon!
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    196f3de View commit details
    Browse the repository at this point in the history
  40. remove yard rake tasks

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    1b2ce62 View commit details
    Browse the repository at this point in the history
  41. use DummyTransport for alternate transport tests

    Travis doesn't have thrift support in its elasticsearch.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    fab53c6 View commit details
    Browse the repository at this point in the history
  42. update readme to highlight connect block support

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    726b599 View commit details
    Browse the repository at this point in the history
  43. update todo

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    0eeb37c View commit details
    Browse the repository at this point in the history
  44. Update readme to mention multi_json and faraday

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    893c0d6 View commit details
    Browse the repository at this point in the history
  45. update readme filename in gemspec

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    d784281 View commit details
    Browse the repository at this point in the history
  46. Add version to faraday gemspec dependency.

    Fixes error when calling previously private methods.
    dougal authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    85d9168 View commit details
    Browse the repository at this point in the history
  47. v0.9.1

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    66d3241 View commit details
    Browse the repository at this point in the history
  48. update CONTRIBUTORS

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    3edf06b View commit details
    Browse the repository at this point in the history
  49. add code climate badge

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    6200030 View commit details
    Browse the repository at this point in the history
  50. respect the first argument to get_aliases

    Previously this was ignored. Fixes #39
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    b6248ad View commit details
    Browse the repository at this point in the history
  51. v0.9.2

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    390c17c View commit details
    Browse the repository at this point in the history
  52. don't default to size 10

    This overrode :size given in the query. Elasticsearch defaults to
    size 10 anyway so there's no need for a default here.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    69e704f View commit details
    Browse the repository at this point in the history
  53. v0.9.3

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    d636cd1 View commit details
    Browse the repository at this point in the history
  54. Fixing issue with ElasticSearch::RetryingClient trying forever and no…

    …t respecting the @retries variable
    mauricio authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    f33ace5 View commit details
    Browse the repository at this point in the history
  55. adding missing requires to exceptions

    mauricio authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    0f5d942 View commit details
    Browse the repository at this point in the history
  56. add require to satisfy travis

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    2d2a075 View commit details
    Browse the repository at this point in the history
  57. add jruby to travis builds

    MultiJson and Faraday allow running on JRuby, yay!
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    1121d5c View commit details
    Browse the repository at this point in the history
  58. v0.9.4

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    147173e View commit details
    Browse the repository at this point in the history
  59. use * instead of _all to search all indices

    Elasticsearch 0.19.9 no longer supports the _all syntax, and * seems to
    be supported at least as far back as 0.14.2.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    c3c4499 View commit details
    Browse the repository at this point in the history
  60. v0.9.5

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    02d65d9 View commit details
    Browse the repository at this point in the history
  61. set default index and type in readme

    The code doesn't work as given without this. Fixes #43
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    ae347e2 View commit details
    Browse the repository at this point in the history
  62. Add ElasticSearch::Api::Pagination#offset

    adammck authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    cfcf0aa View commit details
    Browse the repository at this point in the history
  63. Add Kaminari support

    adammck authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    a745a2d View commit details
    Browse the repository at this point in the history
  64. v0.9.6

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    13f0be3 View commit details
    Browse the repository at this point in the history
  65. Headers are not used by Elasticsearch, but may be used by Faraday to …

    …define basic auth, so don't override them per request.
    courtenay authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    fa5b511 View commit details
    Browse the repository at this point in the history
  66. v0.9.7

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    6b31ada View commit details
    Browse the repository at this point in the history
  67. add index_exists?

    Checking for index existence is a common operation, and previously it
    was pretty cumbersome.
    
    Instead of getting the status of all indices and checking for the
    requested key, this implementation checks for the status of the
    requested index only and rescues the missing exception. This saves on
    bandwidth if you have a lot of indices.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    91e9d07 View commit details
    Browse the repository at this point in the history
  68. add status to RequestError

    Response status is the most useful indicator of what went wrong.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    9495c18 View commit details
    Browse the repository at this point in the history
  69. use status accessor to detect missing index

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    454a28f View commit details
    Browse the repository at this point in the history
  70. allow delete_by_query without specifying index or type

    Elasticsearch allows delete_by_query across multiple indices and types,
    so no need to require scope.
    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    c493452 View commit details
    Browse the repository at this point in the history
  71. v0.9.8

    grantr authored and Frazer Horn committed Mar 25, 2013
    Configuration menu
    Copy the full SHA
    cb6af5c View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    3173dc5 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    ad84995 View commit details
    Browse the repository at this point in the history