Questions tagged [thinking-sphinx]

Thinking Sphinx is a Ruby library that connects ActiveRecord models to the Sphinx search service.

Thinking Sphinx is a Ruby library that connects ActiveRecord models to the Sphinx search service.

Sphinx is a very fast search engine that indexes data and provides flexible ways of searching it. Thinking Sphinx allows you to link up your models into Sphinx simply and painlessly, and provides an interpretation of search results into ActiveRecord model instances.

875 questions
3
votes
0 answers

Lost connection to MySQL server at 'reading initial communication packet' - Thinking sphinx with remote sphinx server

I tried to use thinking sphinx (3.0.2) with remote sphinx server. whenever search query is called like Model.search, I am getting the error: Mysql2::Error: Lost connection to MySQL server at 'reading initial communication packet', system error:…
3
votes
4 answers

How do I specify the MySQL sock file location for thinking sphinx?

My socket file is located here: /var/run/mysqld/mysqld.sock When I do: rake thinking_sphinx:start I get: rake aborted! Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I want to tell thinking_sphinx where my socket file…
Tony
  • 18,776
  • 31
  • 129
  • 193
3
votes
1 answer

Wildcard search issue sphinx

I'm getting the following error while trying a wildcard(*) enabled search in Sphinx 2.0.6 index products: syntax error, unexpected $undefined near '*' My search term is iphone 4s* It's using the products index as defined below. index users { …
Logan Bailey
  • 7,039
  • 7
  • 36
  • 44
3
votes
1 answer

How do I stop ThinkingSphinx from querying the database for faceting an MVA field?

I have a index set up so I can facet on category ids, as following: define_index ... has categorizings.category_id, :type => :multi, :facet => true end When I do a query like Listing.facets, I get the correct results in a hash, with each…
Ben Crouse
  • 8,290
  • 5
  • 35
  • 50
3
votes
2 answers

cron with whenever gem not running

I am using thinking sphinx for search.It searches properlt but the problem was whenever i add new records i have to do rake thinking_sphinx:index manually.So to run it automatically i am using whenever gem with cron but still its not happening…
NJF
  • 435
  • 7
  • 26
3
votes
1 answer

Drilling down with Thinking Sphinx Facets

I have an application, that uses thinking sphinx for search and I can get facets to show up in the view correctly, but the links are not returning a list of the results with the given options. Here is the code that I have for the model controller…
tomciopp
  • 2,602
  • 2
  • 31
  • 60
3
votes
1 answer

Best auto complete/suggest for a search form in rails 3

I have a rails app that uses the following, rails 3.1, ruby 1.9.2, mysql, sphinx search, will paginate, thinking sphinx, I opted not to use a gem for a simple login, so no devise, no authlogic. Login from scratch, using BCrypt for encrypting…
3
votes
2 answers

rails sphinx reindex using a delayed_job rake task

I've found a bunch of posts on this site and others which have given me tidbits of what I need but I've not been able to piece them together. For search I'm running sphinx on my site using the thinking sphinx gem. I need to re-index each time a user…
absolutskyy
  • 567
  • 10
  • 20
2
votes
2 answers

Riddle cannot detect Sphinx on your machine, and so can't determine whichversion of Sphinx you are planning on using

I am getting this error in my console. I just formatted my whole machine. I never this kind of error. Anybody whole can guide me what this riddle is. Riddle cannot detect Sphinx on your machine, and so can't determine which version of Sphinx you are…
Mohit Jain
  • 43,139
  • 57
  • 169
  • 274
2
votes
1 answer

Testing Thinking Sphinx with acts_as_taggable_on Querying Against Erroneous Table Names

To begin with, the production side of things works just fine, it's only when I run the tests that errors arise. As stated in the title, I am using Thinking Sphinx with the acts_as_taggle gem. Here are some snippets from the model I am using: class…
samullen
  • 2,380
  • 2
  • 17
  • 18
2
votes
0 answers

Ruby on Rails upgrade: NoMethodError (undefined method `type' for nil:NilClass)

I'm trying to upgrade my rails 3.0 app to 3.1 (and then to 3.2), but I'm facing the following problem: In my console: 1.9.3p0 :026 > Film.search('art') Sphinx Query (6.6ms) art Sphinx Found 323 results Course Load (2.1ms) SELECT `films`.*…
alex
  • 1,900
  • 3
  • 24
  • 34
2
votes
1 answer

Ruby on Rails - Sphinx doesn't index data in Rspec tests

I use sphinx and thinking sphinx to search data in my Ruby on Rails application. So, i have this test to check my work: require 'spec_helper' require 'thinking_sphinx/test' describe SearchesController do render_views #Start search server in…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
2
votes
1 answer

thinking-sphinx: indexing ok, querying gets "No response from searchd" error

I have this error in development env, using thinking-sphinx search in my controller or with console > Product.search "moule" Riddle::ResponseError: No response from searchd (status: , version: ) The service is up (rake ts:start), and running (ps…
Jérémie
  • 305
  • 3
  • 10
2
votes
1 answer

Thinking Sphinx: Another index error

While indexing I get this error: indexing index 'qtl_table_core'... ERROR: index 'qtl_table_core': sql_range_query: 'soybase.qtl_table.QTLName' isn't in GROUP BY (DSN=mysql://_www:***@xxxxxxx/soybase). My model: class QtlTable < ActiveRecord::Base …
bdeonovic
  • 4,130
  • 7
  • 40
  • 70
2
votes
2 answers

Thinking-Sphinx-Raspell configuration

I am using rails 2.3.4 and sphinx 1.4.4 and raspell 1.0.0. Now I would like to add fuzzy match in sphinx search, so I added in my config/environment.rb file I added the following lines: config =…
Rafiu
  • 4,700
  • 6
  • 25
  • 27