Commits on Dec 23, 2011
  1. [HTTP][FIX] Re-raise the RestClient::RequestTimeout and RestClient::S…

    dylanahsmith authored and karmi committed Dec 13, 2011
    …erverBrokeConnection exceptions
    These exceptions should be re-raised so the user can catch it and possibly try the search at another node, etc.
    Closes #170, closes #171
Commits on Dec 18, 2011
  1. [FIX] Fixed an error where facets did not respect the "blocks with ar…

    itayco authored and karmi committed Dec 18, 2011
    …guments" DSL variant
    Closes #176.
Commits on Dec 12, 2011
Commits on Dec 10, 2011
  1. [FIX] Use currently set `Configuration.url` in `Search::Search#perfor…

    dylanahsmith authored and karmi committed Dec 8, 2011
    …m` and don't freeze it in initializer
    Makes it easier to re-perform a failed search on another server, eg.:
        search ='articles')
        # build search ...
        servers = ["http://localhost:9200", "http://localhost:9201"]
          Tire::Configuration.url servers[0]
        rescue Errno::ECONNREFUSED => e
          Tire::Configuration.url servers[1]
        # do something with results ...
    Closes #163.
Commits on Dec 1, 2011
Commits on Nov 30, 2011
  1. [PERSISTENCE] Changed that search in persistence returns instances of…

    karmi authored and vhyza committed Nov 30, 2011
    … model not Item
  2. [FIX][PERSISTENCE] Fixed an error where find by ids was not returning…

    vhyza committed Nov 30, 2011
    … more than 10 results
Commits on Nov 29, 2011
  1. [DOC] README updates

    karmi committed Nov 29, 2011
  2. [ACTIVEMODEL] Added the support for casting model properties as Ruby …

    karmi committed Nov 29, 2011
    In Tire::Persistence, you define a model property to be casted
    as a custom Ruby class instance.
    Currently, the implementation expects your class to take a Hash of attributes
    on initialization. (There are plans to support custom initialization logic.)
    You can cast either single values (see `Author` in the example below),
    or collections of values (see `[Comment]`). The behaviour was inspired
    by the CouchRest-Model gem.
    Also, all strings which conform to the UTC time format are automatically
    converted to Time objects.
    Also, all Hashes are automatically converted to Hashr []
    instances, allowing easy "dot-style" access to nested hash properties.
        class Article
          include Tire::Model::Persistence
          validates_presence_of :title, :author
          property :title,        :analyzer => 'snowball'
          property :published_on, :type => 'date'
          property :tags,         :default => [], :analyzer => 'keyword'
          property :author,       :class => Author
          property :comments,     :class => [Comment]
    See the test suite for more information.
  3. [GEMS] Added Hashr ( as dependency

    karmi committed Nov 29, 2011
    Hashr allows to easily wrap Hashes in object-like manner:
        config ='foo' => { 'bar' => 'bar' })
        # => true      # => { :bar => 'bar' }
    # => true  # => 'bar'
    See <> for more info.
  4. [REFACTORING] Extracted updating item/model instance attributes to de…

    karmi committed Nov 29, 2011
    …dicated method (`__update_attributes`)
  5. [ACTIVEMODEL] Added support for property defaults in Tire::Model::Per…

    karmi committed Nov 29, 2011
    In the new implementation of the `property` method, you can define default values for your model attributes:
        class Article
          include Tire::Model::Persistence
          property :title
          property :tags, :default => []
        Article.create title: 'Test'
        # => 'Test'
        # => []
  6. Release 0.3.12

    karmi committed Nov 29, 2011
  7. [REFACTORING] Removed mysterious `store_mapping` method and checks, r…

    karmi committed Nov 29, 2011
    …emoved `id` and `type` from serialized document
    Accidentally closes #147.
Commits on Nov 25, 2011
  1. [FIX] Added proper Github URL to Rails application template to README

    Jakub Dušek authored and karmi committed Nov 25, 2011
    For some users, the `rails new` command cannot accept redirects. Closes #154.
Commits on Nov 12, 2011
Commits on Nov 11, 2011
  1. Release 0.3.11

    karmi committed Nov 11, 2011
Commits on Nov 10, 2011
  1. Release 0.3.10

    karmi committed Nov 10, 2011
Commits on Nov 7, 2011
  1. [FIX] Tighten up the Logger interface and make it easier to pass inst…

    karmi committed Nov 7, 2011
    …ances of Logger/Log4r etc.
    Example usage:
        require 'fileutils'
        require 'active_support/buffered_logger'
        mylog = 'buffered-logger.log'
        mylog.instance_eval do
          alias :write :info
        require 'tire'
        Tire.configure { logger mylog }
    Closes #142.
Commits on Nov 6, 2011
Commits on Nov 4, 2011
  1. [FIX] [REFACTORING] Extracted getting the response body to Logger#log…

    karmi committed Nov 4, 2011
    …ged in index methods
Commits on Oct 30, 2011
  1. Release 0.3.9

    karmi committed Oct 30, 2011
  2. Amended integration tests for the "custom_score" queries [#133] [#139]

    karmi committed Oct 30, 2011
    Also updated docs in examples/tire-dsl.rb.
Commits on Oct 28, 2011
  1. [FIX] Avoid doing a map if wrapper is Hash

    dylanahsmith authored and karmi committed Oct 25, 2011
    This also speeds up map by moving the check out of the block.
    Closes #135.
  2. [TEST] Fix technically not-working test for "outer scope variables" i…

    karmi committed Oct 28, 2011
    …n boolean query unit test