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

Sphinx returning bad search results

I am using Sphinx with the Thinking Sphinx plugin. I have indexed a model called Venue with the following code (and the rake thinking_sphinx:index command) define_index do indexes :name indexes city indexes zip end I obtain the results…
Tony
  • 18,776
  • 31
  • 129
  • 193
5
votes
2 answers

Thinking Sphinx indexing performance

I have a large index definition that takes too long to index. I suspect the main problem is caused by the many LEFT OUTER JOINs generated. I saw this question, but can't find documentation about using source: :query, which seems to be part of the…
Jonathan
  • 7,349
  • 5
  • 29
  • 35
5
votes
3 answers

Problem running Thinking Sphinx with Rails 2.3.5

I just installed Sphinx (distro: archlinux) downloading the source. Then I installed "Thinking Sphinx" plugin for Rails. I followed the official page setup and this Screencast from Ryan Bates, but when I try to index the models it gives me this…
5
votes
1 answer

Thinking sphinx - index for join with condition (has_and_belongs_to_many)

I have the model Service, it has the scope to filter services by service type ids: class Service < ActiveRecord::Base has_and_belongs_to_many :service_types scope :by_service_types, -> ids {…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
5
votes
3 answers

Thinking Sphinx and acts_as_taggable_on plugin

I installed Sphinx and Thinking Sphinx for ruby on rails 2.3.2. When I search without conditions search works ok. Now, what I'd like to do is filter by tags, so, as I'm using the acts_as_taggable_on plugin, my Announcement model looks like…
Brian Roisentul
  • 4,590
  • 8
  • 53
  • 81
5
votes
1 answer

Sphinx - When to use 'has' and 'indexes' for fields

I installed Sphinx and Thinking-Sphinx some days ago on my ruby on rails 2.3.2, and basic searching works great. This means, without any conditions. Now, I want to filter the search with some conditions. I have the Announcement model, and the index…
5
votes
2 answers

Thinking Sphinx -- no indexes found in config file

Trying to use Thinking Sphinx for search. Followed this Railscast by homebrew installing TS and MySQL (though I'm using pg in my app, it's apparently required), adding these lines to my gemfile: gem 'mysql2' gem 'thinking-sphinx' and putting the…
Sasha
  • 6,224
  • 10
  • 55
  • 102
5
votes
1 answer

Delta Indexing - Delayed Jobs is not working

The code is working fine with delayed jobs and its making queue in delayed_jobs table and workers are processing them, but still we are getting exception on destroying object here is the trace…
Gul
  • 1,757
  • 2
  • 15
  • 26
4
votes
2 answers

Thinking Sphinx - reindexing on a per-table basis

Reindexing the Thinking Sphinx indices in my development configuration takes several hours, mostly because of several huge tables (we're not using delta updates). Even when I'm changing the index for another, much smaller table, reindexing takes…
Bob Gilmore
  • 12,608
  • 13
  • 46
  • 53
4
votes
1 answer

Why is my index missing documents with Thinking Sphinx?

I have a simple Thinking Sphinx index defined on my Account model: define_index do indexes display_name indexes email_addresses.email_address has created_at set_property :delta => :datetime, :threshold => 2.minutes end (Ignore the delta…
Alex Kahn
  • 537
  • 5
  • 10
4
votes
1 answer

Differences between sunspot and tire gems

Currently I am using thinking sphinx for search. Now I'm considering using sunspot or tire because they automatically index new content. Are there any performance differences between the two? Is there anything else I should be concerned with?
serengeti12
  • 5,205
  • 4
  • 23
  • 27
4
votes
4 answers

Thinking Sphinx: Querying only specific fields in a models index

Lots of Thinking Sphinx questions from me lately. Here's another one: In some of my searches I'd like to only query some of all the fields included in my index definition. I can't seem to find any on this, the nearest thing being limiting the global…
rogerkk
  • 5,494
  • 5
  • 37
  • 53
4
votes
2 answers

Ruby on Rails - Thinking Sphinx Problem

Possible Duplicate: Problem running Thinking Sphinx with Rails 2.3.5 I'm running rails 2.3.5 Every time I run rake ts:start or ts.rebuild the rake file quite with the following: Sphinx cannot be found on your system. You may need to configure the…
Tom
  • 170
  • 1
  • 8
4
votes
1 answer

Sorting fetched collection from ActiveRecord or ThinkingSphinx

I have two questions. Is there a way to sort collection from ActiveRecord or Thinking Sphinx without re-select everything from database/sphinx? ie. @models = Model.where("foo = :foo", {:foo =>…
4
votes
1 answer

How to index boolean column in thinking sphinx using Ruby 1.8.7

I am new to ROR. i am using thinking sphinx. I need to index with one boolean field. that is, i list out records which are active is true. define_index do indexes car.name, :as => :car indexes car_model.car_make.name, :as => :car_make indexes…
Anandh L.v
  • 95
  • 1
  • 2
  • 11
1 2
3
58 59