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

Error connecting to Sphinx via the MySQL protocol

I'm using gem 'thinking-sphinx', '~> 3.1.1' in my Rails app. I follow all step from Git hub for install thinking-sphinx, but when I search record it give me error Error connecting to Sphinx via the MySQL protocol. Error connecting to Sphinx via…
ashvin
  • 2,020
  • 1
  • 16
  • 33
7
votes
3 answers

Thinking Sphinx with a date range

I am implementing a full text search API for my rails apps, and so far have been having great success with Thinking Sphinx. I now want to implement a date range search, and keep getting the "bad value for range" error. Here is a snippet of the…
Leddo
  • 474
  • 7
  • 14
7
votes
2 answers

update thinking sphinx index in ruby code

I have app, which run's on ubuntu 12.04, with nginx+passenger And in my method i try to rebuild sphinx index so: def update_sphinx_index Rails.application.load_tasks Rake::Task['ts:rebuild'].invoke redirect_to admin_mainpage_path …
brabertaser19
  • 5,678
  • 16
  • 78
  • 184
6
votes
3 answers

Thinking sphinx fuzzy search?

I am implementing sphinx search in my rails application. I want to search with fuzzy on. It should search for spelling mistakes e.g if is enter search query charact*a*ristics, it should search for charact*e*ristics. How should I implement this
Pravin
  • 6,592
  • 4
  • 42
  • 51
6
votes
2 answers

How can I temporarily disable delta indexing with Thinking Sphinx?

I am running a big migration and would like to disable delta indexing so it runs much faster. Is there a way to specify in the beginning of the task to turn delta indexing off?
Yoni Baciu
  • 2,667
  • 1
  • 22
  • 28
6
votes
2 answers

Thinking Sphinx Rake aborted, searchd is running while rebuilding or start/stop ts. Index works fine

When I invoke rake ts:rebuild RAILS_ENV=production, I get the following: (in /var/www/abc.com/public/abc/releases/20101008073517) ** Erubis 2.6.6 Stopped search daemon (pid 22531). Generating Configuration to…
Victor
  • 13,010
  • 18
  • 83
  • 146
6
votes
1 answer

Rails paginate existing array of ActiveRecord results

I generally use will_paginate for the pagination in my app, but have hit a stumbler on my search feature. I'm using Thinking Sphinx for doing my full-text search, which returns results paginated. The problem I'm having is that after I've received…
6
votes
1 answer

Getting "undefined method" with Thinking Sphinx scopes when using STI

I'm using Thinking Sphinx 2.0.13 with Rails 3.2.9. Given I have and STI class that looks like this: class User < ActiveRecord::Base define_index do has :account_id has :is_deleted end sphinx_scope(:by_account) do |account_id| …
Codebeef
  • 43,508
  • 23
  • 86
  • 119
6
votes
2 answers

Add new column without table lock?

In my project having 23 million records and around 6 fields has been indexed of that table. Earlier I tested to add delta column for Thinking Sphinx search but it turns in holding the whole database lock for an hour. Afterwards when the file is…
Gul
  • 1,757
  • 2
  • 15
  • 26
6
votes
1 answer

Can thinking-sphinx ransack work together?

Our project is using Ransack at the moment, we are thinking to introduce Thinking-Sphinx. However they both use search keyword. Is any way to use Thinking-Sphinx and Ransack in a same project? Thank in advance.
Ben Zhang
  • 1,281
  • 11
  • 14
5
votes
3 answers

Combining the results of multiple Thinking Sphinx queries into a single paginated result

Is there a simple way to combine the results of multiple Thinking Sphinx searches into a single result? All of these searches are on the same model, but the searches have distinct search terms. What I'm trying to do is combine the results so that…
Przemek Kujonewicz
  • 131
  • 1
  • 1
  • 3
5
votes
1 answer

ThnkingSphinx (sphinxd) on remote database server with delta indexes?

I'm working on setting up a simple multi-tier Rails 3.1 setup -- web apps on one or more servers, postgresql database and our Sphinx search indexes on a remote server. On a single-server setup we're using ThinkingSphinx, and delta indexes (using…
Tom Harrison
  • 13,533
  • 3
  • 49
  • 77
5
votes
3 answers

Thinking Sphinx - Delta indexing doesn't work

In my app, I need every new record to be added to the index instantly (not after rake ts:index). If I understand it correctly delta indexing is what I'm looking for. So, I added delta column to every table I'm indexing with Sphinx, set the default…
Milan Novota
  • 15,506
  • 7
  • 54
  • 62
5
votes
3 answers

Converting a ruby on rails app from sqlite to postgresql

I am going to use thinking sphinx for my application and it requires a conversion to postgresql. I have downloaded both sphinx and postgresql using homebrew, but I am unsure how to convert the rest of the application. I do not care about saving my…
tomciopp
  • 2,602
  • 2
  • 31
  • 60
5
votes
2 answers

is there a way to mix rails named scopes and thinking sphinx scopes?

Is there a way to mix named scopes and sphinx scopes? I can't believe there's not. I have sphinx index on Lessons. Once users purchase lessons, they have a screen that they can see a list of all of their lessons. I want them to perform the same…
pixelearth
  • 13,674
  • 10
  • 62
  • 110
1
2
3
58 59