Questions tagged [sunspot]

Sunspot is a Ruby gem that interfaces with the Apache Solr search server. All the power of the Solr search engine; all the beauty of Ruby. Sunspot exposes all of Solr's most powerful search features using an API of elegant DSLs. That means robust, flexible fulltext search with no boolean queries and no string programming.

855 questions
0
votes
1 answer

rake sunspot:solr:start does not work

I'm working with my Rails app and I'm trying to start Solr but it keeps telling me that my rake aborted. Here is what shows up in my terminal: $bundle exec rake sunspot:solr:start rake…
pengw1nxd
  • 11
  • 2
0
votes
1 answer

Rails 3.2 sunspot_rails and sunspot_solr wont get started on Windows

Edit: Downloaded the zip and installed it manually, now everything works fine. Unfortunately it seems to be impossible to set up Sunspot and Solr on Windows. Running rake sunspot:solr:run works fine, however, when trying to reindex or if on server…
0
votes
1 answer

Sunspot and Rsolr query

I'm reading sunspot documentation and find that sunspot based on RSolr library. Is there any way to get connection to perform low level request like this pseudo-code: solr = Sunspot.connection response = solr.get 'select', :params => {:q => '*:*'}
Volodymyr
  • 1,136
  • 3
  • 11
  • 28
0
votes
1 answer

sort by association field in sunspot

In my app I am using Sunspot for a fulltext search. The problem is that I want to have sorting by association model field. In my case: class Movie < ActiveRecord::Base attr_accessible :description, :genre, :name has_many :premieres end and my…
Pavel
  • 3,900
  • 6
  • 32
  • 41
0
votes
1 answer

sunspot how query specific field

Reading through Sunspot documentation I am trying to find how I can query autocomplete fields. I create them like here https://github.com/haitham/sunspot_autocomplete Here is config solr/conf/schema.xml .......
Volodymyr
  • 1,136
  • 3
  • 11
  • 28
0
votes
2 answers

Rails 3 Best Practice For Global Data

I'm currently rendering a JQuery Plugin on one of my partials in my Application layout. This partial calls one my application helper method which retrieves data generated using Sunspot-solr. The data it's retrieving is the top 30 recently created…
Noz
  • 6,216
  • 3
  • 47
  • 82
0
votes
2 answers

Pass Search Results from One Controller to Another

I've got an index page setup that has a sunspot search with faceting setup in the controller, model and view (Gears Model). I'm trying to place a different search form on the Home page of my application (different view and controller) but I want…
DaveG
  • 1,203
  • 1
  • 25
  • 45
0
votes
1 answer

Rails3 sunspot has_many assoctiation

I have trouble with searching with the sunspot gem. I want to search for user email in an object tenant. tenant has many users In the tenant I did this: searchable do text :name, :notifications_email text :users do users.map(&:email) …
michael_knight
  • 4,921
  • 3
  • 17
  • 10
0
votes
1 answer

Rails 3 Sunspot Solr Conditional Search Only Applied To New Records

I'm trying to perform a query and find 20 records recently created across multiple models using the sunspot_solr gem. Currently it achieves that no problem, but I wanted to add some extra validations for only one of the models that were being…
Noz
  • 6,216
  • 3
  • 47
  • 82
0
votes
1 answer

hide or encrypt form params in url rails 3

I have this form: <%= form_tag posts_path, :method => :get, :class => "search_nav" do %> <%= text_field_tag :search, params[:search], :class => "input-long search-query", :placeholder => "#{t('.search_nav')}" %> <%= hidden_field_tag('ip',…
hyperrjas
  • 10,666
  • 25
  • 99
  • 198
0
votes
2 answers

Undefined field error in sunspot_solr grouping clause

I have product_details table which belongs to categories. product_details has fields like id, name, price, discount and category_id and categories table has fields like id and name. Am using mysql database Am trying to do group product details based…
web spider26
  • 252
  • 4
  • 16
0
votes
0 answers

Why does sunspot/solr seem to lose most indexed search results on server reboot until it's manually reindexed?

Has anyone else run into this issue? I have a startup script that runs a start and reindex command for sunspot/solr. When the server reboots, the service does start. But for some reason the search results still don't show up in my app until I…
yuяi
  • 2,617
  • 1
  • 23
  • 46
0
votes
1 answer

Conflict with bluecove library

I have a big problem according to the bluecove library which I am trying to use in an ANT project. My project is a platform which receive messages from different agents, such as TCP agents, SunSpot agents (which use UDP), and now I'm trying to set…
Joe Lewis
  • 948
  • 5
  • 18
  • 34
0
votes
1 answer

How to use Solr's indexes files

I am writing an customize algorithm upon a Ruby on Rails application which uses Solr & Sunspot for full text search. I want to make use of the index files that Solr generated, especially the TF*IDF value of the indexed words. Is there an easy way to…
Chaoyu
  • 842
  • 8
  • 16
0
votes
1 answer

Search function fails because it refers to the wrong controller action?

My Sunspot search function (sunspot_rails gem) works just fine in my index view, but when I duplicate it to my show view my search breaks... views/supplierproducts/show.html.erb <%= form_tag supplierproducts_path, :method => :get, :id =>…
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
1 2 3
56
57