Permalink
Commits on Sep 4, 2011
Commits on Sep 3, 2011
Commits on Sep 1, 2011
  1. Release 0.3.0

    karmi committed Sep 1, 2011
  2. [ACTIVEMODEL] Implemented all Tire features for models via a `MyModel…

    karmi committed Aug 27, 2011
    ….tire` and `MyModel#tire` proxies for better isolation
    
    Brings the Tire methods into the model class only when not trampling on someone other's foot (`settings`, `update_index`, etc.)
    
    These three calls are thus equivalent:
    
        class Article
          # ...
          mapping do
            indexes :id, :type => 'string', :index => :not_analyzed
          end
        end
    
        class Article
          # ...
          tire.mapping do
            indexes :id, :type => 'string', :index => :not_analyzed
          end
        end
    
        class Article
          # ...
          tire do
            mapping do
              indexes :id, :type => 'string', :index => :not_analyzed
            end
          end
        end
    
    Closes #8, closes #9.
  3. Release 0.2.1

    karmi committed Sep 1, 2011
Commits on Aug 30, 2011
  1. [FACETS] Added support for histogram facets

    Paco Guzman committed with karmi Aug 28, 2011
    Closes #82.
  2. [FIX] Fixed an error while importing documents in Mongoid (incompatib…

    karmi committed Aug 30, 2011
    …ility between reporting collection size between WillPaginate and Kaminari)
    
    This complements karmi/retire@5b79c7a and closes #84
  3. [FIX] Fixed an error due to incompatibility between reporting collect…

    karmi committed Aug 30, 2011
    …ion size between WillPaginate and Kaminari
    
    Collection#length works for both. Closes #84.
Commits on Aug 29, 2011
  1. [FIX] Fixed an error when getting empty hits because of being out of …

    karmi committed Aug 29, 2011
    …bounds (`size=0`, etc)
    
    Thanks to @vhyza for discovering the bug and assisting with smashing it!
  2. [FIX] Fixed an error where bogus NameError exception was raised in Co…

    vhyza committed with karmi Aug 29, 2011
    …llection::Results
    
    The bug is due to the fact, that NoMethodError is a child of NameError,
    see <http://www.ruby-doc.org/core/classes/NoMethodError.html>
Commits on Aug 28, 2011
  1. [ACTIVEMODEL] Added the option to specify custom index name in `MyMod…

    karmi committed Aug 28, 2011
    …el.search`
    
    Usage:
    
        ActiveModelArticle.search( :index => 'custom_index' ) do
          query { string 'foo' }
        end
    
    Closes #78.
  2. Updated documentation and Rails template to use ElasticSearch version…

    Paco Guzman committed with karmi Aug 28, 2011
    … 0.17.6
    
    
    Closes #81.
Commits on Aug 27, 2011
  1. [CI] Proper infrastructure setup for the Travis build infrastructure

    karmi committed Aug 27, 2011
    This reverts commit 9f97d3f. The only Rubies tested against are 1.8.7, 1.9.3 and REE,
    which has practical, not purely intelectual benefits.
    
    Alternative implementation users are encouraged to run the tests locally.
Commits on Aug 26, 2011
  1. [CI] Added Rubinius, jRuby, Ruby 1.9.3 and Ruby-HEAD to Travis test p…

    michaelklishin committed with karmi Aug 27, 2011
    …latforms a.k.a. "Moar Rubies, please"
  2. [ACTIVEMODEL] Added `MyModel.settings` method to allow creating the i…

    karmi committed Aug 26, 2011
    …ndex with custom settings and mappings
    
    Usage:
    
        class MyModel
          include Whatever::ORM
    
          include Tire::Model::Search
          include Tire::Model::Callbacks
    
          settings :number_of_shards => 1,
                   :number_of_replicas => 1,
                   :analysis => {
                     :filter => {
                       :url_ngram  => {
                         "type"     => "nGram",
                         "max_gram" => 5,
                         "min_gram" => 3},
                     },
                     :analyzer => {
                       "url_analyzer" => {
                        "tokenizer"    => "lowercase",
                        "filter"       => ["stop", "url_ngram"],
                        "type"         => "custom"
                       }
                     }
                    } do
            mapping do
              indexes :url, :type => 'string', :analyzer => "url_analyzer"
            end
          end
    
        end
    
    Note, that the index is only created when you declare mappings with the `mapping` method. If this is not what you want,
    just create the index with the `Tire.index('whatever').create ...` method!
Commits on Aug 21, 2011
  1. Release 0.2.0

    karmi committed Aug 21, 2011
  2. [¡BREAKING!] Removed deprecated interfaces

    karmi committed Aug 21, 2011
    * Index#store and Index#percolate do not allow passing document type and document separately, type is inferred from the document itself
    * Model#score method has been removed, use Model#_score
    * Dynamic sorting methods have been removed, use `sort { by :field_name }
  3. [FIX] Fixed import errors with will_paginate 3.0 (documents.size vs d…

    karmi committed Aug 21, 2011
    …ocument.empty?) and improved code readability