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

What does has in thinking_sphinx attributes do?

Can someone here elaborate on what actually does 'has' do in the attributes section of thinking_sphinx? I have gone through the documentation at Thinking sphinx. But, couldn't get what actually it does. Please help me in this issue.
Vamsi Krishna
  • 3,742
  • 4
  • 20
  • 45
0
votes
0 answers

Thinking Shpinx only executes one query in rails method

I'd like to perform two search queries using thinking sqhinx in a ruby on rails controller. TS is all set up and working. Now for some weird reason, only one of two queries is executed. Code in my controller looks like this: @s1 =…
Max
  • 361
  • 4
  • 16
0
votes
1 answer

sphinx search max_matches not working using sphinx.yml file

I am using sphinx search in my rails project. I have sphinx.yml file, i-e. defaults: &defaults enable_wildcard: 1 min_prefix_len: 2 enable_star: 1 max_matches: 25000 development: <<: *defaults test: <<:…
Ramiz Raja
  • 5,942
  • 3
  • 27
  • 39
0
votes
1 answer

Multiple Keyword Search Using Thinking Sphinx Rails Plugin

I'm using the sphinx search engine with the thinking sphinx plugin for rails. I have a job model with a title attribute that is indexed by sphinx. I'd like to search across multiple jobs and capture any that match 1 or more keywords. For instance...…
seanbehan
  • 1,463
  • 15
  • 23
0
votes
1 answer

How to access sphinx_select in search results?

I'm using thinking sphinx, with the sphinx_select parameter to create a dynamic field, like so: @subjects = Subject.search(sphinx_select: "*, petals < 1 or color = 2 as my_attribute") Is there any way to access custom_attribute in the search…
Adrian Macneil
  • 13,017
  • 5
  • 57
  • 70
0
votes
2 answers

How to make Sphinx only return exact matches for conditions?

What is the best way to make Sphinx not use full-text search on conditions? So if I query for "Bannana", and set a condition that the "type" must be "fruit", exactly. So it wouldn't do a full-text search on the condition and return results with the…
user179169
0
votes
1 answer

Sphinx Ranged query + killlist

i have a sphinx instance with two indexes configured: main and delta. Both of them have sql query range. in the delta index i have a killlist query to remove modified articles from the main index. should this query be ranged like the content query…
madoke
  • 873
  • 11
  • 25
0
votes
1 answer

Can't index link.title and link.description because "link" seems to name conflict with something in Thinking Sphin

I have the following define_index method: define_index do indexes content indexes tags.content, :as => :tag_content indexes link.title has :is_private has :user_id has :created_at end When I index I get the following error: WARNING:…
soheildb
  • 1,490
  • 9
  • 9
0
votes
1 answer

Refining Thinking Sphinx search float field with Active Relation

I have database of products and I use Thinking Sphinx to search through them. I have a pretty complex set of conditions to find the right product in the correct category and details. However, I'd like to refine the search so that I can make…
0
votes
1 answer

customising sphinx indexes in order to search on nested attributes

Is there a way in sphinx to define indices in a custom way. Problem - I have a product model and multiple admins exists in the system. each admin can take their own notes on every product. hence notes is not a simple text field. Rather, it is a…
Ravi Sankar Raju
  • 2,850
  • 3
  • 18
  • 16
0
votes
1 answer

Thinking sphinx not reindexing for delta=true

I am facing problem in thinking sphinx What i have following table structure title => varchar desc => varchar is_deleted => boolean Here is my denine_index define_index do indexes title, :sortable => :insensitive has :is_deleted,…
Paritosh Singh
  • 6,288
  • 5
  • 37
  • 56
0
votes
1 answer

Rails and Sphinx: how to search with multiple options for :without

How would I pass multiple options for the :without option in Sphinx with Rails? I have looked at http://freelancing-god.github.com/ts/en/searching.html but have not come up with anything. User.search params[:search], :without => {:id =>…
dmonopoly
  • 3,251
  • 5
  • 34
  • 49
0
votes
1 answer

tag synonyms in rails using thinking sphinx

What is a proper way to handle tag synonyms in rails? Model is called Situation, I use acts_as_taggable_on for tags and ThinkingSphinx for search. Situation.search :conditions => { :tag_name => '(synonym11 | synonym12) | (synonym21 | synonym22)' },…
kakaskin
  • 1
  • 2
0
votes
1 answer

Thinking Sphinx on Rails 3

Installed Thinking Sphinx via Gemfile: gem 'thinking-sphinx',:git => 'git://github.com/freelancing-god/thinking-sphinx.git' When I run rake thinking_sphinx:configure, I get: Unsupported version: 2.0.5 ... but it generates the config file fine.…
James Boutcher
  • 2,593
  • 1
  • 25
  • 37
0
votes
1 answer

Thinking Sphinx sorting integers descending doesn't sort by highest to lowest value

I'm new to using Sphinx and the Thinking Sphinx gem. I have a column that has up to 6 digit integers in it, when I do a sort on that column I'm only getting up to 5 digits by default and when it is ordering them it is doing it by only the first…
Donavan White
  • 1,126
  • 10
  • 23