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

Problem with Thinking Sphinx and scopes

For several hours now I am unsuccessfully trying to get sphinx scopes work. I want to scope tags of ActsAsTaggableOn. In my model (that is taggable) I tried the following scopes: # This normal scope works scope :tagged, lambda { joins(:taggings =>…
medihack
  • 16,045
  • 21
  • 90
  • 134
3
votes
2 answers

Thinking Sphinx application-wide search: filtering by an attribute that only exist in some models

I want to search on multiple models and filter by a certain attribute that some models have and some do not. I want the models with the attribute to get filtered but the ones without it to just ignore it. Currently only the models with the attribute…
Yoni Baciu
  • 2,667
  • 1
  • 22
  • 28
3
votes
2 answers

Filtering Sphinx search results by date range

I have Widget.title, Widget.publish_ at, and Widget.unpublish_ at. It's a rails app with thinking_sphinx running, indexing once a night. I want to find all Widgets that have 'foo' in the title, and are published (publish _at < Time.now, unpublish…
Gwyn Morfey
  • 32,741
  • 6
  • 25
  • 21
3
votes
1 answer

Thinking Sphinx delta indexing - delta index not getting updated

I have delta indexing setup for thinking sphinx on one of my models. When ever a record gets updated, the delta is being set to True, but I don't see the index getting updated with the changes made to the record. I have my sphinx configuration files…
RajeshT
  • 417
  • 4
  • 9
3
votes
0 answers

In thinking sphinx min_infix_len not working in production

I have used min_infix_len => 2 in my model.rb file to improve searching of items by splitting up the words in sphinx. Everything is working fine in development. But in my production the words are not getting split up and searched. For example, If I…
Abhiram
  • 1,459
  • 14
  • 23
3
votes
1 answer

saving search terms rails thinkingsphinx

I use TS for full text search in my rails app. I am trying to save the search term to present "most searched" type list in my app. Here is my search controller index action. I notice that with the "save" the search feature the search takes about…
badnaam
  • 1,876
  • 4
  • 29
  • 53
3
votes
1 answer

Can I identify matched terms when searching with sphinx?

I am using sphinx to do full text search on a mysql database through thinking sphinx. I would like to highlight the matched terms in the results I show to the user. Shpinx is smart enough that searching for 'botulism' will match "i like to inject…
Vishu
3
votes
0 answers

Thinking Sphinx : Multiple indices and Delta

Since I have a model with localized fields (using Globalize, I'd like to make localized search. I set up two indices on my model : ThinkingSphinx::Index.define :document, name: "document_fr", :with => :active_record, :delta => true do indexes…
LapinLove404
  • 1,939
  • 1
  • 21
  • 26
3
votes
3 answers

Sphinx connection error on search results page in Ruby on Rails application

I have a RoR app with Posgresql as database. I'm trying to setup search functionality by using Sphinx as search engine and Thinking Sphinx gem. I've installed sphinx with mysql and postgresql support, thinking sphinx v3 gem and it's…
3
votes
1 answer

Test Thinking Sphinx search results in Rails Minitest

Should someone cover sphinx search results tests in there tests suits? What I was thinking: "Thinking Sphinx is a gem that is widely used and tested by many users and contributors. So Why should we retest it in our applications."
Malik Shahzad
  • 6,703
  • 3
  • 37
  • 49
3
votes
1 answer

Can't find price between

I use: rails 4.1.1 ruby 2.1.1 thinking sphinx 3.1.1 mysql2 object_index.rb: ThinkingSphinx::Index.define :object, :with => :active_record do indexes price, :sortable => true ... has created_at, updated_at end In sphinx config: …
3
votes
1 answer

Delta Indexing not working with Thinking Sphinx

Core-Index works, but Delta-Index just does not work. But the strange thing is, that there are no errors or warnings in the log-files, so I don't know how to debug it. I tested it with phusion-passenger and locally with Webbrick. The results are the…
Asco
  • 31
  • 3
3
votes
3 answers

Spanish accents in Sphinx searches

I've just included thinking-sphinx on Ruby-on-rails and I wanted to know how and where I must config the chartset_table so if I search some word with an accent, it returns results as if the word didn't have the accent. EDIT: This is my Sphinx.yml…
Brian Roisentul
  • 4,590
  • 8
  • 53
  • 81
3
votes
3 answers

How do I start Thinking Sphinx delayed delta rake task from deploy script?

I have Thinking Sphinx setup and working however I am having a problem getting the Delayed Job rake tasks to start during deployment. I have the following task in deploy.rb which appears to execute, however the delayed jobs are not processed - they…
simonyoung
  • 845
  • 3
  • 10
  • 22
3
votes
2 answers

Thinking Sphinx search returns (Object doesn't support #inspect)

I have sphinx and thinking sphinx (3.0.2) installed on mountain lion for my rails 3 app and everything seems to be running fine during the installation. My eventual plan is to work with the geodist feature of sphinx but at the moment i just wish to…