sunspot-rails
Sunspot Rails - Can user change what fields to search?
I started using Sunspot to perform searc开发者_如何学Pythonhes in my Rails 3 app and I ran into a doubt. Is there a way that I can let the user choose in what fields he/she wants to search. For exampl[详细]
2023-04-11 12:03 分类:问答undefined method `closed?' for nil:NilClass Ruby on Rails Sunspot
I have spent more than 24 hours trying to figure out what im doing wrong here. Can you please help. This is what i have.[详细]
2023-04-05 07:22 分类:问答Possible to order search results using current_user
I\'m trying to order search results using an equation that uses Products and User has inputs. In other words, I have an equation that uses data from both Products and current_user. I want to be able t[详细]
2023-03-31 08:15 分类:问答Indexing different fields with different fieldtype in Sunspot (Solr)
I\'d like to set up my indexing so that phonetic-matched results are given less weight than regular matches.[详细]
2023-03-30 01:37 分类:问答How to use sunspot_rails gem to search for related articles
I have a mini blog app and i would like user to view articles that relates to what they are reading in the article show page. without the sunspot_rails gem i would do something like this[详细]
2023-03-28 08:47 分类:问答Sunspot-solr is eating up too much memory? What's a convenient way to reduce memory usage?
So it seems Sunspot-Solr is eating a lot of memory up. And its probably due to my malpractice as a programmer allocating proper usage of it.[详细]
2023-03-27 17:51 分类:问答Writing RSpec specs to test app using sunspot_rails
Does anyone have a good example of using RSpec with the sunspot_matchers gem (or just plain RSpec) to test code using the sunspot gem?[详细]
2023-03-22 10:55 分类:问答Sunspot Rails to order search results by model id?
Assume that I have the following model and I have made it searchable with sunspot_rails. class Case < ActiveRecord::Base[详细]
2023-03-21 10:15 分类:问答sunspot_rails Levenshtein distance operator
I\'m using sunspot_rails (on rails3) to interface my rails app to a solr server. I would really like 开发者_运维知识库to perform fuzzy searches using the ~ operator. Anyway it seems that this is not s[详细]
2023-03-21 00:14 分类:问答all time data without setting facet.date.start to a random past date
I use the following query to get time-series data of Posts. q=*:*&facet=true&facet.date=created_at_d&start=0[详细]
2023-03-20 01:06 分类:问答