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

Thinking sphinx index with Multiple joins and conditions

I have 3 models : Users has_one Service and Users Has_many Phones (verified or not, destroyed or not) Class Phone < ActiveRecord::Base belongs_to :user end class User < ActiveRecord::Base has_one :service has_many :phones has_many…
alex
  • 357
  • 3
  • 14
2
votes
1 answer

expected attr type ('uint' or 'timestamp' or 'bigint') in sql_attr_multi

I am trying to reindex on thinking sphinx and I am stuck on this error: source 'user_core_0': expected attr type ('uint' or 'timestamp' or 'bigint') in sql_attr_multi, got 'string zip_city from field' I am not sure what else I have to…
Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
2
votes
4 answers

Geo searching from zip codes with latitude/longitude in database

I have struggle with understanding how to accomplish this, and there seems to be a lot of people asking this question with no answers. I have a users table with their zip code. I created a zips table with every zip code with latitude/longitude in…
Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
2
votes
1 answer

Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (61)

I have a really strange issue, since i have my thinking sphinx app giving me this error everytime i try to use search method. But i know, and i know it for sure that it USED TO work properly. i pushed it, working version on github, and left it on my…
Leo
  • 2,061
  • 4
  • 30
  • 58
2
votes
1 answer

Thinking Sphinx connecting to external Sphinx Daemon

I need to connect my application to external server with Sphinx. Sphinx is used by many applications and I'm not administrating it. What I need to set in my application to connect to that external server with Thinking Sphinx? I assume I don't run…
zeth
  • 225
  • 1
  • 3
  • 9
2
votes
2 answers

Thinking_sphinx Search method doesn't work when I include ransack gem in my Gemfile

I included thinking_sphinx gem in my project. Article.search "Bla-bla-bla" works fine. But when I include ransack gem in my Gemfile I get the error: NoMethodError: undefined method `with_indifferent_access' for "Bla-bla-bla":String from…
Aleksandr Shvalev
  • 1,005
  • 2
  • 11
  • 22
2
votes
1 answer

thinking sphinx fails configuring development config

I have installed thinking sphinx and after running rake ts:index , it fails to configure the development file. The file is created, but it is empty. Generating configuration to /Users/lexi87/dating/config/development.sphinx.conf rake…
pwz2000
  • 1,385
  • 2
  • 16
  • 50
2
votes
1 answer

Thinking sphinx conditions with if statement

I have such thinking sphinx search condition with or operator: Oil.search "(@oiliness #{params[:oiloiliness].gsub(/[^0-9A-Za-z]/, '')} | @oiliness #{params[:oiloiliness]}) | (@description #{params[:descr]}) but i must change it so, that i can use…
brabertaser19
  • 5,678
  • 16
  • 78
  • 184
2
votes
3 answers

How can I make sure the Sphinx daemon runs?

I'm working on setting up a production server using CentOS 5.3, Apache, and Phusion Passenger (mod_rails). I have an app that uses the Sphinx search engine and the Thinking Sphinx gem. According to the Thinking Sphinx docs... If you actually want…
Ethan
  • 57,819
  • 63
  • 187
  • 237
2
votes
1 answer

Thinking Sphinx 3.0.1 how to turn off Delta indexes when testing with Rspec

I have Delta indexing turned on by default for all my Models: ThinkingSphinx::Index.define :book, :with => :active_record, :delta => (::Padrino.env == :production ? ThinkingSphinx::Deltas::SidekiqDelta : true) do I'd like to turn delta indexing off…
kakubei
  • 5,321
  • 4
  • 44
  • 66
2
votes
3 answers

ThinkinSphinx - not found - Sphinx cannot be found on your system

i tried to install sphinx with rails 3.0.1 on my new server. I always get this: Sphinx cannot be found on your system. You may need to configure the following settings in your config/sphinx.yml file: * bin_path * searchd_binary_name *…
dumP
  • 771
  • 8
  • 17
2
votes
1 answer

Thinking sphinx 3 and sphinx 2.1.1-beta not start

I install Thinking sphinx 3 on Rails 3 app and new sphinx 2.1.1-beta, before this i have Thinking sphinx 2 and sphinx 2.1.1-beta, and they work fine with add port: 3312 in sphinx.yml But now when i add port: 3312 in thinking_sphinx.yml i get…
nick-c
  • 23
  • 3
2
votes
1 answer

Using crc32 tweak on has_many relations in Thinking Sphinx

It's weird actually. I have two models that have has_many relation each other, here are my models #model city class City < ActiveRecord::Base belong_to :state end #model state class State < ActiveRecord::Base has_many :city end and I have state…
2
votes
6 answers

Thinking Sphinx delta indexing fails in production

Here's what I've determined: Delta indexing works fine in development Delta indexing does not work when I push to the production server, and no action is logged in searchd.log I'm running Phusion Passenger, and, as recommended in the basic…
Matchu
  • 83,922
  • 18
  • 153
  • 160
2
votes
1 answer

Flying-sphinx and Heroku scheduler

Because I'm a newbie at FS, Heroku and Rails I am having trouble implementing the scheduler rake task. I build a scheduler.rake in my lib/tasks folder and set up the following: desc "This task is called by the Heroku scheduler add-on" task…
Laurent
  • 1,554
  • 19
  • 42