sunspot

Can't reindex Sunspot SOLR - Error - RSolr::Error::Http - 500 Internal Server Error

耗尽温柔 提交于 2019-11-29 09:21:41
Everytime i try to reindex using... rake sunspot:solr:reindex These error messages always show: Error - RSolr::Error::Http - 500 Internal Server Error - retrying... Error - RSolr::Error::Http - 500 Internal Server Error - ignoring... Error - RSolr::Error::Http - 500 Internal Server Error - retrying... Error - RSolr::Error::Http - 500 Internal Server Error - ignoring... I tried to stop then start using... rake sunspot:solr:stop rake sunspot:solr:start But nothing happened. And now everytime I try to run my app in localhost... This is the error: RSolr::Error::Http - 500 Internal Server Error

sunspot_rails not re-indexing model after save

梦想的初衷 提交于 2019-11-28 22:48:47
问题 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 would re-index after a save. On testing, this doesn't seem to be the case. If I run: rake sunspot:reindex , then everything works as expected. What could be causing this issue? 回答1: As mentioned by Jason, you can call Sunspot.commit_if_dirty to issue a commit from your client. From the server configuration

Rails app: Solr throwing RSolr::Error::Http - 404 Not Found when executing search

独自空忆成欢 提交于 2019-11-28 18:14:19
Very lost as I haven't made any changes to my search which has always been working but somehow I've got a break. Being relatively new to Rails, the error output isn't giving me enough detail to debug. Relevant code below - ask if you want to see anything else. home.html.slim (excerpt with search form) = form_tag search_venues_path, method: :get, id: 'search' do |f| .search-fields.span16 p = text_field_tag :q, '', placeholder: "Search for coffee, hotel, etc", class: 'span7 search-field' p = text_field_tag :zip, '', placeholder: "Zip code or city name", class: 'span4 search-field' p = submit_tag

What's the best way to monitor a socket for new data and then process that data?

邮差的信 提交于 2019-11-28 12:57:30
Please pardon my C#.Net newbie status. If this is obvious and I missed it from the docs, a link to the relevant page or sample code would be appreciated. I am working on an application that will accept a TCP socket connection from a Java application. (Yes, Java is required on that part. It's a Sun SPOT device and Java is the only option.) The Java app will be periodically writing new data to the socket, and my app's job is to take in the byte[], convert it to a string, process the data (update UI, etc), and possibly forward the data on to another computer running a similar C#.NET app. Here's

solr sunspot - searching belongs_to association

你离开我真会死。 提交于 2019-11-28 12:35:31
I have a fabrics model that belongs to multiple other tables. class Fabric < ActiveRecord::Base validates :name, presence: true belongs_to :design belongs_to :composition belongs_to :collection belongs_to :style belongs_to :origin belongs_to :texture belongs_to :supplier has_and_belongs_to_many :colours searchable do text :name, :boost => 5 text :description text :composition do composition.name end text :collection do collection.name end text :style do style.name end text :origin do origin.name end text :texture do texture.name end text :supplier do supplier.name end end end I have setup all

SocketError (getaddrinfo: Name or service not known) - Sunspot/Solr Rails development

回眸只為那壹抹淺笑 提交于 2019-11-27 15:00:53
问题 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 to 0.8.7 it's finally working, but now Sunspot/Solr doesn't work in my development environment. The sunspot_solr server is running, and I am able to get the server's url, and connect to it via the browser. The url is the same as in sunspot.yml. I have no idea what I have done that can have caused

What's the best way to monitor a socket for new data and then process that data?

家住魔仙堡 提交于 2019-11-27 07:17:33
问题 Please pardon my C#.Net newbie status. If this is obvious and I missed it from the docs, a link to the relevant page or sample code would be appreciated. I am working on an application that will accept a TCP socket connection from a Java application. (Yes, Java is required on that part. It's a Sun SPOT device and Java is the only option.) The Java app will be periodically writing new data to the socket, and my app's job is to take in the byte[], convert it to a string, process the data

solr sunspot - searching belongs_to association

巧了我就是萌 提交于 2019-11-27 07:04:58
问题 I have a fabrics model that belongs to multiple other tables. class Fabric < ActiveRecord::Base validates :name, presence: true belongs_to :design belongs_to :composition belongs_to :collection belongs_to :style belongs_to :origin belongs_to :texture belongs_to :supplier has_and_belongs_to_many :colours searchable do text :name, :boost => 5 text :description text :composition do composition.name end text :collection do collection.name end text :style do style.name end text :origin do origin

Setup sunspot solr with rails in production environment

大城市里の小女人 提交于 2019-11-27 06:07:50
I have tried various links but I can't seem to find a good resource on creating a running solr instance that works with rails in production. I understand that you have to setup the solr server for production. I have tried the setup of solr with tomcat but I cant seem to link it to the rails app. Is there any good resource out there that I could use? Thanks This blog may solve your question: Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem. ( http://blogs.pigrider.com/blogs/26 ) Below are some parts from the blog: ...... 8) Copy this configuration file

Setup sunspot solr with rails in production environment

一笑奈何 提交于 2019-11-26 11:54:45
问题 I have tried various links but I can\'t seem to find a good resource on creating a running solr instance that works with rails in production. I understand that you have to setup the solr server for production. I have tried the setup of solr with tomcat but I cant seem to link it to the rails app. Is there any good resource out there that I could use? Thanks 回答1: This blog may solve your question: Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem. ( http:/