sunspot-rails Questions

7

Solved

I have had lots of trouble with deploying my rails 3.0.10 application to Ubuntu 10.04 server with Passenger, Capistrano, nginx and MySQL (and even more trouble with apache2). After downgrading rake...
Gnaw asked 11/3, 2012 at 10:58

5

I have a model with a searchable block, like so: class Contact < ActiveRecord::Base searchable do text :contact_name, :company_name, :contact_email end end In the controller's index actio...
Hyphen asked 11/8, 2011 at 16:44

2

Solved

I've got a few tests running with RSpec for a Rails site, but despite following the instructions things aren't quite behaving themselves. I create an article via a Factory, run Sunspot.commit and ...
Jade asked 2/11, 2011 at 14:52

2

Solved

I'm using Sunspot to index and search several models in a Rails project and I need to limit results based on the models' HABTM associations with a Department model. This is because users may not ha...
Shy asked 16/2, 2014 at 12:21

2

I'm trying to install Sunspot in a small Rails app, exactly following the gem setup instructions, but every time I run into RSolr::Error::Http: RSolr::Error::Http - 404 Not Found errors when I try ...
Danzig asked 3/12, 2015 at 20:13

3

Solved

I am converting a Rails app from using acts_as_solr to sunspot. The app uses the field search capability in solr that was exposed in acts_as_solr. You could give it a query string like this: titl...
Foozle asked 2/2, 2012 at 20:3

3

Solved

Let's say that I want to search for Events in my app. When I display the results, I want to display who created the event, for instance. Is there any way to add .includes(:user) somewhere, to avoi...

1

Solved

Hi I'm developing rails app with Solr 4.1 search engine, When I add highlighting to searchSolr start spaming the tomcat6 log with this warning: Jan 29, 2015 12:13:38 PM org.apache.solr.highlight...
Retrospective asked 28/1, 2015 at 16:54

3

Solved

I am in the process of upgrading my app to Rails 4, and now got my rails server, as well as sunspot solr, after a lot of tinkering, to run, I can access Solr admin page. However when I try to acces...

4

Solved

How would one correctly search multiple models in SunSpot Solr? Profile model has_one :match searchable do string :country string :state string :city end Match model belongs_to :profile searc...
Outguard asked 25/6, 2013 at 14:31

3

I have a model which deploys a delayed job that updates some of its attributes. The model is declared "searchable"... searchable do text :content, :stored => true end ... which I thought wo...
Canula asked 3/9, 2010 at 0:37

2

I just have done setting up sunspot_rails and it seems working well except one thing. After I made 3 records like below name=John name=John2 name=John3 when I search with the keyword "John", on...
Chemosynthesis asked 23/6, 2012 at 5:51

2

Solved

I'm debugging my Solr schema and I'd like to see the results of tokenizing a specific field. For a simplified example, if I have: <fieldType name="text" class="solr.TextField" omitNorms="false...
Morril asked 3/5, 2012 at 4:59

6

I am having millions of records in my mysql database. I implemented a normal REST api for the iPhone app in Rails 3, but the SAYT feature response is really slow. It takes a lot of time to search t...
Prajna asked 24/2, 2012 at 6:12

1

I'm trying to implement a sitewide search through the powerful Sunspot gem for Rails. This involves a search across multiple, very different models at once. What I WANT to do is use the faceting fe...

1

Solved

I am using solr via sunspot in my rails application where I need to return more than 30 records which is set by default. I can do it as told in Sunspot solr but i don't want pagination for the dat...
Normi asked 29/12, 2011 at 10:13

1

Solved

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 pa...
Bab asked 19/6, 2011 at 12:10

2

Solved

Let me know if I am wrong, but I think solr only expects fields that are already mentioned in the schema.xml. So, if I have a field called 'title', I need to mention this in the schema. There is n...
Archaeornis asked 25/8, 2011 at 19:11

1

Solved

We are using sunspot for search in our latest project. We also use devise and are indexing our user model as follows: searchable do text :fname text :lname text :email text :description text ...
Prosperity asked 18/5, 2011 at 6:1
1

© 2022 - 2024 — McMap. All rights reserved.