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

dyld: Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib

I am facing the following issue on Mac when I run rake ts:index for Thinking Sphinx indexing: dyld: Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib I am using mysql version 8.0.13 for osx10.13 on x86_64. How can I resolve this issue?
Faisal Raza
  • 1,337
  • 1
  • 10
  • 16
19
votes
4 answers

thinking sphinx unknown type 'mysql'; skipping

I'm using ts version 2.0.5, rails 3.0.9 and mysql2 0.2.11 When trying to create my indexes, using rake ts:index, I get the following error: ERROR: source 'technical_core_0': unknown type 'mysql'; skipping. My development.sphinx.conf…
Jenny Blunt
  • 1,576
  • 1
  • 18
  • 41
19
votes
4 answers

How does a full text search server like Sphinx work?

Can anyone explain in simple words how a full text server like Sphinx works? In plain SQL, one would use SQL queries like this to search for certain keywords in texts: select * from items where name like '%keyword%'; But in the configuration files…
0x4a6f4672
  • 27,297
  • 17
  • 103
  • 140
14
votes
5 answers

How do I run rake tasks within my rails application

What I want to do: In a model.rb, in after_commit, I want to run rake task ts:reindex ts:reindex is normally run with a rake ts:index
fivetwentysix
  • 7,379
  • 9
  • 40
  • 58
11
votes
2 answers

Error with configuring thinking sphinx and flying sphinx

I have Rails 3 application running on Heroku. I am using Thinking Sphinx search engine into my application. For making it work with Heroku, I have added a flying-sphinx gem to my gemfile as suggested in the Heroku docs. This is what I have in my…
Prajkta P
  • 111
  • 3
10
votes
2 answers

Using main and delta indexes in sphinx

Im switching fulltext searching on my site to sphinx. Im going to be using SphinxSE to perform the searches. I created 2 indexes, as specified in the manual: http://www.sphinxsearch.com/docs/manual-0.9.9.html#live-updates It seems to work, and index…
user15063
9
votes
6 answers

How to implement faster Search As You Type (SAYT) api in Rails 3 application

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 the database and return the results. How can I…
Amal Kumar S
  • 15,555
  • 19
  • 56
  • 88
9
votes
2 answers

How to test ThinkingSphinx using RSpec

I have a class method in a model that calls thinking_sphinx's search() method. I need to check this class method. I want to start, index or stop sphinx in my rspec test cases. I am trying with this piece of code. before(:all) do …
Anand
  • 10,310
  • 24
  • 90
  • 135
9
votes
1 answer

How do I add the condition "IS NOT NULL" to a Thinking Sphinx search

I'm using Thinking Sphinx for full-text search, following this video. I'd like to do the following: @articles = Article.search(params[:search], :conditions => "published_at IS NOT NULL", :order => :created_at) The problem is that this doesn't work.…
8
votes
3 answers

Thinking sphinx doesn't start - "Failed to start searchd daemon"

I try to start thinking sphinx on my server but it doesn't want to work. I do: $ rake thinking_sphinx:index && rake thinking_sphinx:start And i get: Generating Configuration to…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
8
votes
3 answers

Rake task aborted, undefined method 'indexes' for Thinking Sphinx?

I have Sphinx and Thinking Sphinx 2.0.5 installed on my application and when I keep trying to run the command rake ts:index it gives me this error: rake aborted! undefined method `indexes' for # Is is talking about…
LearningRoR
  • 26,582
  • 22
  • 85
  • 150
8
votes
5 answers

Any ideas why Thinking Sphinx Rake tasks are not running?

I'm finding that Thinking Sphinx sometimes errors out when I try to run its Rake tasks. Sometimes the tasks work fine, and sometimes I get errors like the one below. I'm running the tasks as a normal user, not root. Not using sudo. In the example…
Ethan
  • 57,819
  • 63
  • 187
  • 237
8
votes
5 answers

Does Heroku support Thinking Sphinx?

I would like to know if Heroku supports Sphinx (and its gem Thinking Sphinx)
Ben Orozco
  • 4,361
  • 4
  • 33
  • 49
8
votes
3 answers

undefined method `next_result' for Mysql2 (rails 3)

I used to use the second version of the software and had no problems. In my last application, I decided to use the latest "thinking-sphinx". I have a strange mistake. > NoMethodError in Adverts#index undefined method `next_result' for >…
user1466717
  • 779
  • 1
  • 10
  • 23
7
votes
1 answer

How to use Multi-Value Attributes (MVA) and facets together in Thinking Sphinx?

I've got rails 3 app with models: class Event < ActiveRecord::Base has_many :event_categories has_many :categories, through: :event_categories end class EventCategory < ActiveRecord::Base belongs_to :category belongs_to :event end class…
Nikolay Shebanov
  • 1,363
  • 19
  • 33
1
2 3
58 59