Permalink
Commits on Jul 14, 2011
  1. Release 0.1.16

    committed Jul 14, 2011
  2. Changed formatting issue in routes definition in the template for gen…

    …erating Rails application
    committed Jul 14, 2011
Commits on Jul 12, 2011
  1. Changed, that multiple indices for `Tire::Search::Search.new` should …

    …be passed as an Array or String; Allowed leaving index empty for searching across the whole server
    committed Jul 12, 2011
  2. [REFACTORING] Cleaned up code and tests for passing document type to …

    …search from pull request #54
    
    
    Closes #38, closes #54.
    committed Jul 12, 2011
  3. Added ability to pass type to search and added that model passes `doc…

    …ument_type` to search [#38]
    jonkarna committed with Jul 7, 2011
  4. [ACTIVEMODEL] Fixed handling of fields returned prefixed by _source f…

    …rom ES [#31]
    
    The underlying issue is this, reported by @vhyza: <#31 (comment)>
    
    For a query with limited fields, such as:
    
    <http://localhost:9200/fields_test/_search?q=shay&fields=message,_source.person>
    
    ES returns JSON like this:
    
        fields: {
          message: "This is a tweet!"
          _source.person: {
            sid: "12345"
            name: {
              last_name: "Banon"
              first_name: "Shay"
            }
          }
        }
    
    Notice the `_source` prefix for the `person`.
    It gets even more tricky with nested hashes such as `_source.track.info.duration`.
    This should be converted into a regular Hash and accessible as `track.info.duration.minutes` property of the result.
    
    See the test suite for example data. This commit closes issue #31.
    committed Jul 12, 2011
Commits on Jul 11, 2011
  1. [ACTIVEMODEL] Added the ability to define mapping for nested fields i…

    …n `Model.indexes` method [Closes #56]
    
    Example:
    
        class Article
          include Tire::Model::Search
          include Tire::Model::Callbacks
    
          mapping do
            indexes :title, :type => 'string'
            indexes :author do
              indexes :first_name, :type => 'string'
              indexes :last_name,  :type => 'string', :boost => 100
            end
          end
        end
    
    Previously you would have to define the author mapping like this:
    
        indexes :author,
                  :type => 'object',
                  :properties => {
                    :first_name => { :type => 'string' },
                    :last_name  => { :type => 'string', :boost => 100 }
                  }
    
    (This interface is still supported...)
    committed Jul 11, 2011
Commits on Jul 10, 2011
  1. TMP > Nested mapping

    committed Jul 10, 2011
Commits on Jul 9, 2011
Commits on Jul 7, 2011
Commits on Jul 6, 2011
Commits on Jul 4, 2011
  1. Release 0.1.15

    committed Jul 4, 2011
  2. [REFACTORING] Deprecated the old `sort { somefield, 'DESC' }` interfa…

    …ce, use the more declarative `sort { by :somefield, 'DESC' }` (=> Sort.new.by(:somefield, 'desc'))
    committed Jul 4, 2011
  3. [REFACTORING] Add alias Model#update_elasticsearch_index for Model#up…

    …date_elastic_search_index
    committed Jul 3, 2011
  4. [REFACTORING] Deprecate the old `Index#percolate <type>, <document>` …

    …interface, infer type from document [#44]
    committed Jul 3, 2011
  5. [DOC] Added documentation about passing document type in Index#store,…

    … #import and spruce up the wordings around
    committed Jul 2, 2011
  6. [BULK] Added, that message is written to STDERR when a document in co…

    …llection does not have ID
    committed Jul 2, 2011
  7. Changed, that ArgumentError is raised in Index#remove and Index#retri…

    …eve when no ID is passed
    committed Jul 2, 2011
  8. [REFACTORING] Move guards against $VERBOSE warnings into Index#get_ty…

    …pe_from_document and Index#get_id_from_document methods
    committed Jul 2, 2011
  9. [REFACTORING] Moved getting the document type into a separate method

    Also: Delete the _type/type properties from Hash in Index#get_type_from_document
    committed Jul 2, 2011
  10. [ACTIVEMODEL] Changed, that the new Index#store/remove interface with…

    … auto-inferring of document type is used in Model#update_elastic_search_index [#44]
    committed Jul 2, 2011
  11. Changed, that Index#import checks for `documents.size > 0`, not `docu…

    …ments.empty?`, so Mongoid/Kaminari can do their funky stuff
    committed Jul 4, 2011