Permalink
Commits on Apr 12, 2014
  1. @fabn
  2. @bbonamin

    Changed, that the `<<` operator is used in Logger, instead of `+=`

    Dramatically improves the performance of the code where strings are concatenated, by changing the "+=" for "<<".
    
    Sample profiling of line 50 on logger.rb with a 20,000 lines json response from Elasticsearch:
    
        Before the change
        99.74%  48.04 seconds String#each_line
    
        After the change
        74.91%  0.11 seconds String#each_line
    
    Closes #959
    bbonamin committed with Apr 11, 2014
  3. [TEST] Fixed 0.90-based test for exposing the Elasticsearch response

    The "ok" key has been removed.
    committed Apr 12, 2014
  4. Added the "pry" gem to the Gemfile

    committed Apr 12, 2014
  5. [TEST] Fixed incorrect test for STI

    `to_i` obviously doesn't provide enough granularity.
    committed Apr 12, 2014
  6. Fixed an incorrect condition in Index#retrieve and added that `nil` i…

    …s returned for 404 responses
    
    This fixes #939.
    committed Apr 12, 2014
Commits on Mar 3, 2014
  1. Added notice about 1.0 compatibility to README, added link to elastic…

    …search/elasticsearch-rails
    
    Related: #943
    committed Mar 3, 2014
Commits on Feb 22, 2014
  1. Fixed `Index.retrieve` so that it works with ES 1.0.0 and previous ve…

    …rsions
    
    Closes #939
    Jon Stokes committed with Feb 21, 2014
Commits on Jan 24, 2014
  1. @msonnabaum
Commits on Jan 15, 2014
  1. Release 0.6.2

    committed Jan 15, 2014
  2. Suggestions: Small edits to the relevant chapter in `tire-dsl.rb` doc…

    …umentation
    
    Closes #916
    Closes #894
    Closes #857
    Closes #777
    committed Jan 15, 2014
  3. @fabn
  4. @fabn

    Fixed failing test on 0.90.7

    fabn committed with Nov 30, 2013
  5. @fabn
  6. @fabn
  7. @fabn
  8. @fabn
  9. @fabn

    Suggestions: Fixed failing unit tests

    fabn committed with Nov 30, 2013
  10. @fabn

    Suggestions: Integrated @marc-villanueva stuff with @fbatista PR

    Related: #777 and #857
    fabn committed with Nov 30, 2013
  11. @fabn

    Suggestions: Fixes for completion multi

    fabn committed with Nov 30, 2013
  12. @fabn

    Suggestions: Shortcut method in DSL

    fabn committed with Nov 29, 2013
  13. Suggestions: Exception raised outside `Search` module, use fully-qual…

    …ified name.
    Bob Aman committed with Sep 25, 2013
  14. Added suggest support to the model integration

    Related: #916, #857
    F��bio committed with Aug 29, 2013
  15. [#857] Added support for the Suggest API (@fbatista)

    Still needs more tests and support for other more types other than completion
    
    See: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html
    
    Related: #916, #894, #857, #777
    Fábio committed with Aug 29, 2013
Commits on Jan 7, 2014
Commits on Nov 13, 2013
  1. @spra85

    [ACTIVEMODEL] Exposed the response from `MyModel#.update_index` as th…

    …e `response` method on return value
    
    Similarly to what is available in the persistent storage class.
    
    Closes #908
    spra85 committed with Nov 12, 2013
Commits on Oct 16, 2013
  1. Release 0.6.1

    committed Oct 16, 2013
Commits on Oct 2, 2013
  1. @ryansch

    Added support for bulk update

        # update mapping
        index = Tire::Index.new(Contact.tire.index_name)
        puts index.mapping(
          Contact.tire.document_type,
          properties: {
            updated_at: {
              type: 'date',
              format: 'date_time_no_millis'
            }
          }
        )
    
        # add data
        Contact.find_in_batches do |batch|
          documents = batch.map do |contact|
            {
              id: contact.id,
              type: Contact.tire.document_type,
              _routing: contact.account_id,
              doc: ContactSearchSerializer.new(contact, only: :updated_at).as_json
            }
          end
          puts index.bulk_update(documents)
        end
    
    Closes #853
    ryansch committed with Aug 29, 2013
  2. @monfresh

    Add out_of_range? alias for Kaminari support

    Kaminari's method is called "out_of_range?", but tire uses "out_of_bounds?". I added the alias to make integration with Kaminari easier.
    
    Closes #855
    monfresh committed with Aug 31, 2013
  3. Changed that `default` properties of Tire::Persistence are evaluated …

    …when being casted, not on class load
    
    Closes #864
    Ben Hundley committed with Sep 7, 2013
  4. @felixbuenemann

    Fixed possible double require of model classes

    When loading environment berfor tire:import:all, it is possible that
    models are already loaded when tire tries to load them. This can cause
    redefinition of constants and all other kind of havoc.
    
    This fix first tries to constantize the models to see if they are
    already loaded before trying to require them.
    
    See issue #744 for discussion.
    
    Closes #869
    felixbuenemann committed with Sep 18, 2013
  5. @donaldpiret