Questions tagged [sunspot-rails]

Sunspot Rails Plugin

Sunspot Rails is a Rails plugin that provides drop-in integration of the Sunspot[http://outoftime.github.com/sunspot] Solr search library with Rails

411 questions
0
votes
1 answer

Sunspot model assocation

I have two models, an School model and Price model. Every school has a price. I would like to return in the search result school with its prices. I am using rails and sunspot. School-controller: class SchoolsController < ApplicationController def…
user592638
0
votes
1 answer

Running multiple instances of Sunspot solr server for running cucumber tests using parallel_tests gem

I am using parallel_tests gem for running my cucumber features in parallel. While i am trying to run the cukes, i am getting Sunspot::Solr::Server::AlreadyRunningError but the process is continuing and only one firefox window is running. My…
0
votes
2 answers

sunspot_solr error on heroku?

I'm using 'sunspot_rails', '~> 2.0.0.pre.120415' for Solr search in my rails app and deploy it on heroku (two separate application). It's working fine on one application but throw error on other. I have checked the heroku environment and found that…
Lucky
  • 140
  • 6
0
votes
1 answer

Solr Sunspot -- How to make 2 strings like "Co." and "Company" appear identical?

I have many records that contain abbreviations in a column of names. I might have the record "ABC Brewing Co.", and I want solr to interpret this as being identical to a search for "ABC Brewing Company". Any ideas on how this might be…
D-Nice
  • 4,772
  • 14
  • 52
  • 86
0
votes
1 answer

sunspot_rails gem

Currently I'm migrating search logic to sunspot search engine , I have a query how to implement search in the polymorphic association . This is the model content Class Vendor < ActiveRecord::Base has_and_belongs_to_many :specialties end vendor…
yamuna
  • 21
  • 3
0
votes
1 answer

Solr Search Stripping Phone Number in Database before Comparison

I have a list of restaurants that I want to match with the restaurants in my database using phone number. The problem is that the numbers are formatted differently (i.e. (123)123-1234 or 123 123-123 or other combinations). My current Solr search…
Huy
  • 10,806
  • 13
  • 55
  • 99
0
votes
1 answer

Long Running Process in Openshift - like sunspot

I know there are quite a few openshift fan out there and the list of feature that openshift give you I dont blame them too so this question is for those guys I have solr full text search engine running on the openshift Now the I using…
Ratatouille
  • 1,372
  • 5
  • 23
  • 50
0
votes
1 answer

Is there a way with Solr to search fuzzy AND exact?

thank you for taking your time Problem I have a problem with searching records based on a fuzzy name search and an exact Regio search. This is what I have now: What I have now # :klantnaam is a param from a search-form @param =…
Carsten
  • 1,000
  • 8
  • 26
0
votes
1 answer

How to avoid dropping existing index when reindexing

When reindexing Sunspot, the existing index is cleared/dropped first. This means user will see blank search results for a short time, which is bad for production environment. Is there a way to do reindexing without clearing existing indexes? The…
lulalala
  • 17,572
  • 15
  • 110
  • 169
0
votes
1 answer

Sunspot fulltext search - showing search parameter

I would like to show the search parameter of a search object. I using rails and sunspot. Lets say I have this book application where store a bunch of books and whould like to search the book by them name and title. The book model: class Book <…
user592638
0
votes
1 answer

how to get work sunspot rails with heroku

Hi i am using sunspot_rails gem for searching.It is working fine on my local machine but there is problems with configuring it with heroku.And i have this error Errno::ECONNREFUSED (Connection refused - connect(2)): this is my…
Kashiftufail
  • 10,815
  • 11
  • 45
  • 79
0
votes
1 answer

Why Sunspot Solr does not bring results when I include "of" word in search query?

I am trying to make a simple query using sunspot/solr and I seem to fail to fetch the results when my query string contains the word "of". To be more specific: When I query "University of Thessaloniki" solr returns no hits, but when I query…
p.matsinopoulos
  • 7,655
  • 6
  • 44
  • 92
0
votes
2 answers

autocomplete in Solr and sunspot

I'm building a website with RoR and I use Sunspot and the solr Search Engine. I needed to use autocomplete functionality but I couldn't. I knew that Solr has a new thing called suggester but I don't know how to use this with sunspot and in a rails…
Mazen Aly
  • 5,695
  • 1
  • 15
  • 12
0
votes
1 answer

Why am I getting a NullPointerException when using Sunspot Solr in Ruby on Rails?

I recently upgraded Rails in my local project to 3.2.8 and now when I do any search I get the following error: RSolr::Error::Http - 500 Internal Server Error Error: java.lang.NullPointerException at…
Goalie
  • 3,045
  • 5
  • 35
  • 46
0
votes
3 answers

"Sunspot" Gem makes distinction between UTF-8 chars

In a Rails app I started using sunspot => https://github.com/sunspot/sunspot/blob/master/README.md Everything went OK until I noticed this (taken from the rails-console): 1.9.3p194 :002 > MyModel.search{fulltext "leon"}.results => [#
Manu Artero
  • 9,238
  • 6
  • 58
  • 73