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

sphinx search library new records are not showing

I am using sphinx search library for indexing in my project.But i am unable to get all records.Here you can see the results I get .I am having total 57 records but it is showing 24 records only. I have did research allot. It might be issue of real…
0
votes
1 answer

Thinking Sphinx not converting attribute from :decimal to :float in PostGresql

Having a bit of trouble with Thinking_Sphinx. To whit: I have a Restaurant model and a Review Model with the following relationship: Restaurant Has_many Reviews through relationships Review belongs_to Restaurant through relationships Each review…
Laurent
  • 1,554
  • 19
  • 42
0
votes
1 answer

thinking sphinx search model object

this is a real noob question but I'm having trouble finding a clear response in the doc: Is it possible to use Thinking Sphinx to search through a model object's associations. EXAMPLE: @user.posts.search("I'm confused") All the examples I see would…
Laurent
  • 1,554
  • 19
  • 42
0
votes
1 answer

Alternative syntax for ElasticSearch vs ThinkingSphinx

Please have a look on below code, Its the normal indexing statement for thinking sphinx indexes owned_tags.name, :as => :owned_tag_names has owned_tags.id, :as => :owned_tag_ids, :facet => true Can any one guide what would be the syntax to have…
Nazar Hussain
  • 5,102
  • 6
  • 40
  • 67
0
votes
1 answer

Error "unknown local index 'post_core' in search request"

I wanna put Thinking Sphinx in my project Ruby On Rails, I am using ROR version 3.2.1 and Thinking sphinx 3 i getting error unknown local index 'post_core' in search request browser said that my error in my View <% @posts.each do |post| %> …
0
votes
1 answer

Thinking sphinx geosearch issues

I need to search locations with sort by distance from passed coordinates. app/indices/location_index.rb ThinkingSphinx::Index.define :location, :with => :active_record do indexes :name has latitude, longitude end Try to search: >…
Ivan Schneider
  • 1,145
  • 1
  • 11
  • 20
0
votes
1 answer

Listing out searches in index

I'm having issues showing out all of my drinks in my index.html.haml. I have recently moved to start using thinking sphinx for searching after watching Ryan Bates' (thinking sphinx railscast. As part of the move to sphinx I changed @drinks =…
BrianJakovich
  • 1,604
  • 1
  • 13
  • 23
0
votes
1 answer

Thinking Sphinx fails after Capistrano deployment with "unknown key name 'sql_attr_string'"

Thinking Sphinx works like a dream in my development environment of my Rails app. But when I try to deploy it via Capistrano to my production environment, it fails. I tried to go in and manually build the index and got the oddest…
isthmuses
  • 1,316
  • 1
  • 17
  • 27
0
votes
2 answers

How to sort Search Results based on a Field Value in Sphinx (Rails)

I have a scenario where Projects have Schedules, Schedules have many various names and due dates. Given I can search Projects and sort on Project field values and even polymorphic field values how can I sort the results based off of Schedules with…
yekta
  • 3,363
  • 3
  • 35
  • 50
0
votes
1 answer

Handling American / UK spelling plus plurals in Sphinx

We need to have all these terms match each other and are running into difficulty orthopaedic, orthopedic, orthopaedics, orthopedics At the moment we are dealing with most other plurals using morphology stem_en This is our current wordforms entry for…
Jack
  • 95
  • 1
  • 11
0
votes
1 answer

How to test Thinking Sphinx delta indexes using rspec

I have used Thinking sphinx in my project and have test cases using Rspec for my search functionalities using setup similar to here I have also used extensive Delta indexing in my project. How can I test my delta indexed results using rspec here.
Rahul garg
  • 9,202
  • 5
  • 34
  • 67
0
votes
1 answer

How do you configure Sphinx to ignore parentheses in search results?

So that the search "Example" returns "(Example)" I tried to place the bracket UTF code in ignore_chars but this doesn't work. Current config is below: production: version: 1.10-beta wordforms: lib/wordforms.txt stopwords: lib/stopwords.txt …
Jack
  • 95
  • 1
  • 11
0
votes
1 answer

Sphinx cannot be found on your system.

I am using my rails application in ubuntu12.04. I just installed thinkingsphinx and sphinx using these commands. sudo apt-get install sphinxsearch sudo gem install thinking-sphinx But thinking-sphinx version is 1.4.11 but i want 1.3.20. So i…
Padmaja
  • 13
  • 7
0
votes
2 answers

How to ignore leading special characters in sphinx search?

For example, we want the search term "Test" to match the word "@Test" and "(Test)"in the results.
Jack
  • 95
  • 1
  • 11
0
votes
1 answer

Thinking Sphinx not returning results added after running rake thinking_sphinx:index

For some reason no users that were added to the DB after rake thinking_sphinx:index (or configure) are being displayed. I tried rebooting the server, stopping thinking sphinx then restarting and configuring. Still running into the same issue. When I…
Alan DeLonga
  • 454
  • 1
  • 10
  • 27