class Sunspot::Search::FacetRow

Attributes

count[R]
value[R]

Public Instance Methods

inspect() click to toggle source
# File lib/sunspot/search/facet_row.rb, line 22
def inspect
  "<Sunspot::Search::FacetRow:#{value.inspect} (#{count})>"
end
instance() click to toggle source

Return the instance referenced by this facet row. Only valid for field facets whose fields are defined with the :references key.

# File lib/sunspot/search/facet_row.rb, line 15
def instance
  if !defined?(@instance)
    @facet.populate_instances
  end
  @instance
end