Permalink
Commits on Apr 12, 2014
  1. Changed, that the `<<` operator is used in Logger, instead of `+=`

    bbonamin committed with karmi Apr 11, 2014
    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
  2. [TEST] Fixed 0.90-based test for exposing the Elasticsearch response

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

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

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

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

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

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

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

    karmi committed Jan 15, 2014
    …umentation
    
    
    Closes #916
    Closes #894
    Closes #857
    Closes #777
  3. Fixed failing test on 0.90.7

    fabn committed with karmi Nov 30, 2013
  4. Suggestions: Fixed failing unit tests

    fabn committed with karmi Nov 30, 2013
  5. Suggestions: Integrated @marc-villanueva stuff with @fbatista PR

    fabn committed with karmi Nov 30, 2013
    Related: #777 and #857
  6. Suggestions: Fixes for completion multi

    fabn committed with karmi Nov 30, 2013
  7. Suggestions: Shortcut method in DSL

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

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

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

    Fábio committed with karmi Aug 29, 2013
    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
Commits on Jan 7, 2014
Commits on Nov 13, 2013
  1. [ACTIVEMODEL] Exposed the response from `MyModel#.update_index` as th…

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

    karmi committed Oct 16, 2013
Commits on Oct 2, 2013
  1. Added support for bulk update

    ryansch committed with karmi Aug 29, 2013
        # 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
  2. Add out_of_range? alias for Kaminari support

    monfresh committed with karmi Aug 31, 2013
    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
  3. Changed that `default` properties of Tire::Persistence are evaluated …

    Ben Hundley committed with karmi Sep 7, 2013
    …when being casted, not on class load
    
    
    Closes #864
  4. Fixed possible double require of model classes

    felixbuenemann committed with karmi Sep 18, 2013
    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