sunspot
Sunspot: Sort/order facet results by attribute e.g. created_at
Asset model: searchable do text :title text :description time :created_at integer :category_ids, :multiple => true, :references => Category[详细]
2023-03-15 14:27 分类:问答Can't connect to Sunspot server in Ubuntu server
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.[详细]
2023-03-15 13:08 分类:问答Rails Sunspot - Is it possible to retrieve a facet row by the value?
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?[详细]
2023-03-14 07:10 分类:问答Sunspot: force index of parent model when updating child model
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[详细]
2023-03-14 03:24 分类:问答Sunspot Solr - working with facets
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)[详细]
2023-03-13 03:10 分类:问答Searching with Sunspot returns all results in db
Inside StreamPage i have defined this code for searching searchable do text :html, :stored => true, :boost => 2[详细]
2023-03-12 12:46 分类:问答Solr Sunspot non-indexed field
Solr (via Lucene) supports different ways to indicate the way a field is indexed in a document: indexed, tokenized, stored,...[详细]
2023-03-08 04:52 分类:问答Can sunspot / solar boost results that are in a certain group?
I have three models (in rails) associated as follows class Content has_and_belongs_to_many :groups end class Group[详细]
2023-03-08 02:36 分类:问答Sunspot Index Only When Searchable Fields Change
We are using sunspot for search in our latest project. We also use devise and are开发者_如何学运维 indexing our user model as follows:[详细]
2023-03-07 02:51 分类:问答Rails 3: sunspot solr : adding search ability for every page
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.[详细]
2023-03-06 11:48 分类:问答