Asset model: searchable do text :title text :description time :created_at integer :category_ids, :multiple => true, :references => Category
I followed the steps in https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less to install & set up Sunspot search in Rails in a Mac OS and it is ok.
If I have a query facet (and therefore know the row\'s value), is it possible to retrieve a specific row from the facet based on the known value?
I am using Sunspot to generate alot of my apps indexes and overviews. In this app i have 2 models which have a parent/child one-to-many relationship. With Sunspot I index the number of childs a paren
I have setup faceted search using Sunspot, SOLR. Like this: for row in @search.facet(:facet_id).rows link_to row.instance.name, :url_for(:search => params[:q], :facet_id => row.value)
Inside StreamPage i have defined this code for searching searchable do text :html, :stored => true, :boost => 2
Solr (via Lucene) supports different ways to indicate the way a field is indexed in a document: indexed, tokenized, stored,...
I have three models (in rails) associated as follows class Content has_and_belongs_to_many :groups end class Group
We are using sunspot for search in our latest project. We also use devise and are开发者_如何学运维 indexing our user model as follows:
How do you add search to a layout so it can search for posts through every page of the site? such as here on stackoverflow.