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
4
votes
2 answers

Thinking sphinx rails not running

Everytime I try to run Sphinx 2.0.1 with Rails 3 on Mac OSX Snow Leopard, I get the following error: Failed to start searchd daemon. Check /Users/.../log/searchd.log. Failed to start searchd daemon. Check /Users/.../log/searchd.log And that's my…
mabounassif
  • 2,311
  • 6
  • 29
  • 46
4
votes
3 answers

sphinx config || config/sphinx.yml

my sphinx configuration is: ================================ config/sphinx.yml development: bin_path: "/usr/local/bin" searchd_binary_name: searchd indexer_binary_name: indexer but everytime i run a rake ts:index Sphinx cannot be found on…
warlock
  • 203
  • 3
  • 7
4
votes
2 answers

Thinking Sphinx indexing succeeding on command line, but failing in Cron job

I admit I've cobbled together a mostly working production setup on Ubuntu with Capistrano from the official docs (which seem dated and make a lot of assumptions) and various blog posts of varying outdatedness. Anyway, the last annoying hang up is…
kbighorse
  • 389
  • 1
  • 2
  • 15
4
votes
0 answers

Thinking Sphinx sometimes search daemon is shutting down and can't start with ts:start

After a short period of usage thinking sphinx on the staging server I have found strange behavior. Every 2-3 days search on the website becomes unavailable because search daemon is down. When I try to start it manually with rake ts:start command it…
SunnyMagadan
  • 1,819
  • 14
  • 12
4
votes
1 answer

Thinking Sphinx - multiple conditions for attribute filters using OR

I have my method to search, which looks like this: class Machine < ActiveRecord::Base def filter_search(params, order_query = 'machines.updated_at desc') ts_query = '' attribute_filters = { order: order_query.gsub(/.*?\./, ''), …
ExiRe
  • 4,727
  • 7
  • 47
  • 92
4
votes
1 answer

How can I integrate parallel_test and thinking sphinx in cucumber tests?

I have Rails 4 app with cucumber features. In some tests i have thinking sphinx data such as: @javascript @sphinx Feature: Edit a service Scenario: Editing Given I exist as an "individual" And I have few services as individual user …
ExiRe
  • 4,727
  • 7
  • 47
  • 92
4
votes
1 answer

How to integrate Convert_tz of MySql in thinking sphinx

how can i integrate Convert_tz of Mysql in thinking sphinx? i tried to look up for answers but i'am not able to find any. I'am using ruby - 1.9.3 and rails 3.2 thinking sphinx 2.0.11 eg: Model.search("", with: {attribute: ">=CONVERT_TZ(#{Time.now},…
Aditya Kamatar
  • 363
  • 1
  • 7
4
votes
1 answer

Thinking Sphinx not indexing newly added records

I am using sphinx to search on 2 models along with their associations. I am using delta indexing. Things work fine on my dev box in dev mode (Ubuntu). However, on staging box production env, when I create new records, I need to build the index again…
Chirantan
  • 15,304
  • 8
  • 49
  • 75
4
votes
1 answer

Rails, Thinking_sphinx, Delta Index

I'm using thinking_sphinx and am delta indexing a model. The delta index works but there is small bug. When I create a new product it is index. However, when I update that product it is not getting index right away. I have to update or create a new…
thenengah
  • 42,557
  • 33
  • 113
  • 157
4
votes
4 answers

Loading data from associated model in same query in rails

Basically, I have a Listing model, where each listing has a country id. I need the country name in my search results view. I know I can do @listing.country.name, but this performs an extra query for each listing in my search results. I'm using…
Dave
  • 1,051
  • 1
  • 10
  • 20
4
votes
1 answer

Can't connect to MySQL server on '127.0.0.1' (61) rails thinking_sphinx

I was upgrading from thinking_sphinx ~2.5 to 3.0.3 to follow the setup instructions for the heroku add-on flying_sphinx. The upgrade might not be necessary at all, but now I'm at it so might as well get it done. When I try to search (e.g.…
ajbraus
  • 2,909
  • 3
  • 31
  • 45
4
votes
1 answer

Sphinx delta indexing -- still necessary to rebuild the main index?

I've been reading up on the Sphinx search engine and the Thinking Sphinx gem. In the TS docs it says... Sphinx has one major limitation when compared to a lot of other search services: you cannot update the fields [of] a single document in an…
Ethan
  • 57,819
  • 63
  • 187
  • 237
4
votes
2 answers

Freeze on thinking sphinx stop(ts:stop) in capistrano

When I trying to deploy my app via capistrano, on ts:stop command there is infinity freeze, so deploy proccess can't finish well. Any ideas? Here is a trace log: ** Invoke ts:stop (first_time) ** Invoke environment (first_time) ** Execute…
Meliborn
  • 6,495
  • 6
  • 34
  • 53
4
votes
4 answers

How do I include the capistrano thinking sphinx tasks when using the gem

Im using the gem for thinking sphinx: sudo gem install freelancing-god-thinking-sphinx \ --source http://gems.github.com So: require 'vendor/plugins/thinking-sphinx/recipes/thinking_sphinx' Which is prescribed on the website does not work. How…
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
4
votes
1 answer

Sphinx search max_matches error

I want to customize sphinx search in such a way that I could keep as many records as I want in memory. I am getting the follwing error: searchd error (status: 1): per-query max_matches=25000 out of bounds (per-server max_matches=1000)
Ramiz Raja
  • 5,942
  • 3
  • 27
  • 39