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
2
votes
1 answer

no such file to load -- thinking-sphinx

When running script commands like script/console I get the error message: no such file to load -- thinking-sphinx In my evironment.rb file I have: config.gem 'thinking-sphinx', :version => '1.3.18', :require_as => 'thinking_sphinx' In my rake…
huug
  • 1,059
  • 2
  • 11
  • 25
2
votes
1 answer

Thinking Sphinx : unique results count for model with multiple indices

I noticed something strange with the total_entries count for my results. When indexing my document, I see that there are 8027 documents indexed : using config file 'myapp/config/production.sphinx.conf'... indexing index…
LapinLove404
  • 1,939
  • 1
  • 21
  • 26
2
votes
1 answer

How to completely delete and recreate thinking-sphinx index?

I am using the thinking-sphinx plugin for a ruby on rails app. In testing and development, I have reindexed many, many times, sometimes against different databases, with the result that now all of my searches return an empty array. I don't believe…
Brad
  • 21
  • 2
2
votes
1 answer

Sphinx with metaphone and wildcard search

we are an anatomy platform and use sphinx for our search. We want to make our search more fuzzier and started to use metaphone to correct spelling mistakes. It finds for example phalanges even though the search word is falanges. That's good but we…
JoKer
  • 1,074
  • 1
  • 8
  • 11
2
votes
1 answer

Trouble connecting to Sphinx MySQL in development

I have Thinking Sphinx installed in my Rails app. Everything works fine in Heroku, but locally I cannot get anything up and running. When I try to run rake ts:index, I get sh: indexer: command not found When I try to use the search function in the…
spitfire109
  • 9,651
  • 3
  • 20
  • 28
2
votes
2 answers

Displaying similar users

Is it possible using Thinking Sphinx for it to output 8 (or other specified) similar users? For example I am on a Males profile page that lives in California. Under the Similar Users section it would show 8 other Males from California. It would be a…
Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
2
votes
1 answer

Geo distance filter with Thinking Sphinx

I am considering the use of Thinking Sphinx, as I already have used ElasticSearch and would like to try something new. In using ThinkingSphinx, how would one go about setting up a geo distance filter. There would be a User model containing the basic…
pwz2000
  • 1,385
  • 2
  • 16
  • 50
2
votes
1 answer

How to search for plural/singular of word

I am using the Thinking Sphinx gem. Is there a way to configure it so that it includes the plural and singular word in the search results? For example: "Dog" will find "Dogs" "Service" will find "Services" I believe any search capability should have…
Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
2
votes
2 answers

Am I reindexing this Sphinx index correctly?

According to the Thinking Sphinx docs... Turning on delta indexing does not remove the need for regularly running a full re-index ... So I set up this cron job... 50 10 * * * cd /var/www/my_app/current && /opt/ruby/bin/rake…
Ethan
  • 57,819
  • 63
  • 187
  • 237
2
votes
1 answer

Why does thinking-sphinx work in development but not in my spec?

It seems very interesting for me: in development mode TS work with queries easy, but in testing I get an error. Here is my test: describe 'GET #index' do subject { get :index } let!(:products) { Fabricate.times(10, :product) } before(:all)…
Alex Antonov
  • 14,134
  • 7
  • 65
  • 142
2
votes
1 answer

Thinking Sphinx not working in test mode

I'm trying to get Thinking Sphinx to work in test mode in Rails. Basically this: ThinkingSphinx::Test.init ThinkingSphinx::Test.start freezes and never comes back. My test and devel configuration is the same for test and devel: dry_setting:…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
2
votes
1 answer

Can Thinking Sphinx delayed delta use a named delayed_job queue?

We need to have separate queues for different types of jobs. One of them is Thinking Sphinx delayed deltas. We could keep using the default queue but we rather use a specifically named queue. Can this be done?
Yoni Baciu
  • 2,667
  • 1
  • 22
  • 28
2
votes
2 answers

Thinking Sphinx - nested association with boolean field

I have Ruby on Rails 4 project with Thinking Sphinx 3. I have few models: class Investment < ActiveRecord::Base has_many :investment_parts end class InvestmentPart < ActiveRecord::Base belongs_to :investment has_many :check_orders,…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
2
votes
0 answers

How to use ThinkSphinx to search on a many to many relationship

So I am working on this schema. segment.rb class Segment < ActiveRecord::Base attr_accessible :broadcast_date, :comment, :name, :person_id, :episode_id, :segment, :tv_show_id, :person_ids,:balance ... has_many :personSegments has_many…
fenec
  • 5,637
  • 10
  • 56
  • 82
2
votes
1 answer

thinking sphinx partially rebuilding index?

After running a script to populate my database i ran a rake ts:rebuild but sphinx is partially rebuilding the indexes. Stopped searchd daemon (pid: 23309). Generating configuration to /home/guest_dp/config/development.sphinx.conf Sphinx…
mamesaye
  • 2,033
  • 2
  • 32
  • 49