Sha256: 868e3fc7a43b5ac7e49fcc047143401885bb487b2f1795f5fbb5fdee2e1d2bb5

Contents?: true

Size: 655 Bytes

Versions: 16

Compression:

Stored size: 655 Bytes

Contents

module Picky

  #
  #
  class Index

    delegate :load,
             :analyze,
             :reindex,
             :possible_combinations,
             :to => :categories

    # TODO Remove in 4.0.
    #
    alias reload load

    # Define how the results of this index are identified.
    # (Shown in the client, for example)
    #
    # Default is the name of the index.
    #
    def result_identifier result_identifier = nil
      result_identifier ? define_result_identifier(result_identifier) : (@result_identifier || @name)
    end
    def define_result_identifier result_identifier
      @result_identifier = result_identifier
    end

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
picky-3.6.16 lib/picky/index_indexed.rb
picky-3.6.15 lib/picky/index_indexed.rb
picky-3.6.14 lib/picky/index_indexed.rb
picky-3.6.13 lib/picky/index_indexed.rb
picky-3.6.12 lib/picky/index_indexed.rb
picky-3.6.11 lib/picky/index_indexed.rb
picky-3.6.10 lib/picky/index_indexed.rb
picky-3.6.9 lib/picky/index_indexed.rb
picky-3.6.8 lib/picky/index_indexed.rb
picky-3.6.7 lib/picky/index_indexed.rb
picky-3.6.6 lib/picky/index_indexed.rb
picky-3.6.4 lib/picky/index_indexed.rb
picky-3.6.3 lib/picky/index_indexed.rb
picky-3.6.2 lib/picky/index_indexed.rb
picky-3.6.1 lib/picky/index_indexed.rb
picky-3.6.0 lib/picky/index_indexed.rb