Questions tagged [thinking-sphinx]
Thinking Sphinx is a Ruby library that connects ActiveRecord models to the Sphinx search service.
873
questions
0
votes
1
answer
15
views
How to give preference to a particular index while searching through multiple indices in thinking sphinx
I am using Thinking Sphinx with rails 5.2.2. I need to give preference to data of one index than the other, while searching through multiple indices, in the final output.
For example I have an index ...
0
votes
0
answers
33
views
Thinking Sphinx won't build index
I am currently trying to implement a search with Thinking-Sphinx (5.3.0) and Rails (6.1.4.2) running on Ruby 2.7.0 inside an Ubuntu 20.04.
When I run 'rake ts:rebuild' to build the index, it aborts ...
-1
votes
1
answer
2k
views
Could not find rake-13.0.6 in any of the sources (Bundler::GemNotFound)
I've done a bit of gem updating on a project I'm working on due to git security complaints, and now I'm running into an issue: the web project page doesn't work with an error "Web application ...
0
votes
1
answer
289
views
Sphinx installation error ''invalid option --pgsql"
My system is MAC OS Big Sure. I wanted to add sphinx to my project but faced problem. When I enter command:
brew install sphinx --pgsql --mysql
I got an error:
Error: invalid option: --pgsql
Part ...
0
votes
1
answer
50
views
Sphinx fails to reindex on Heroku
I have a Rails app using the following:
Sphinx 2.2.11-id64-release (95ae9a6)
Thinking Sphinx 4.4.1
Flying Sphinx 1.2.0
Currently I am successfully able to reindex (rake ts:rebuild) on development. ...
0
votes
1
answer
31
views
How to diagnose thinking sphinx failing on Heroku (but succeeding locally)?
On a relatively old Rails app and Heroku Stack (16) trying to run rake ts:rebuild:
rake aborted!
NoMethodError: undefined method `running?' for #<FlyingSphinx::Controller:0x00000005d7ae10>
/app/...
0
votes
1
answer
516
views
Getting ERROR: unknown key name ‘docinfo’ on sharetribe installation
I've been struggling to run bundle exec rake ts:index in my sharetribe project. It's returning an error:
rony@ronyMacMini sharetribe % bundle exec rake ts:index
Generating configuration to /Users/rony/...
0
votes
0
answers
168
views
Sphinx/Searchd: Supervisord autorestart not working
We are running sphinx through supervisord inside docker. We are trying to enable autorestart, but it does work. We are trying to verify this by manually killing the searchd process.
Below is the ...
0
votes
0
answers
83
views
Sphinx merging command failed: rake ts:merge fails while indexer command succeeds
Sphinx: 2.3.2-beta
Thinking Sphinx: 4.4.1
When we run bundle rake ts:merge INDEX_FILTER=artcile, we get the following error:
The Sphinx merging command failed:
Command:indexer --config "config/...
0
votes
1
answer
67
views
Thinking Sphinx(v4.4) - Error while indexing after including 'where' condition in index definition
Thinking sphinx gem version - 4.4.1
Sphinx version - 3.3.1
I get
ERROR: index 'article_core': no full text fields in schema, nothing to index!
while indexing after including where condition in the ...
0
votes
1
answer
34
views
Heroku FlyingSphinx Configuration needed for ThinkingSphinx::Configuration.instance.controller.running?
We ported our Rails 5.2 app to Heroku and were able to get almost everything working with FlyingSphinx.
Search and indexing work well but as a convenience to our users, we try to let them know when ...
1
vote
1
answer
136
views
ThinkingSphinx::SphinxError (Unknown MySQL error):
ThinkingSphinx was working fine in my app on Ubuntu and MacOS Mojave. Then I upgrade my macOS to Catalina 10.15.4 . Now thinking sphinx giving error Unknown MySQL.
Altough commands like rake ts:...
0
votes
0
answers
300
views
Sphinx Search with non-ASCII characters
I am using Sphinx 3.1.1 (via ThinkingSphinx 4.4.1), with real-time indexes (i.e. they are not directly backed up by MySQL tables).
On my development machine I can successfully search for strings with ...
0
votes
0
answers
102
views
migrate from ThinkingSphinx to Elasticsearch on rails
I want to move to Elasticsearch from ThinkingSphenx on rails application.
I use simple and complex search like :
ThinkingSphinx.search(query, options)
and
ThinkingSphinx.facets(query, options)
so ...
0
votes
1
answer
82
views
How to search data on created at less than in thinking sphinx
Using thinking_sphinx to fetch data from records. It working fine but facing an issue that not find any to get records on date comparison like created_at greater than or less than. I check their ...
0
votes
1
answer
55
views
Sphinx Search / Thinking Sphinx Excerpts for associated models
Question 1
I have a model that has multiple associations, I have created at index configuration that feeds of the associated models, e.g. person is the main model, this has associations that are ...
0
votes
1
answer
174
views
How to do multi facets search in thinking sphinx rails
Using thinking-sphinx for facets in my app and define two facets price and year.
I want to fetch facets nested results.
Now I am getting facets by year and it give count against year.
years = ...
0
votes
1
answer
101
views
How check that associated file is not NULL in thinking sphinx?
I have a Product model that has_many :images
Image model has a photo field (I use carrierwave gem to store the file):
class Image < ApplicationRecord
mount_uploader :photo, DressingUploader
end
...
0
votes
1
answer
49
views
Thinking Sphinx, search ordered by associate's attribute
I'm trying to order the Thinking Sphinx search results for a model Item (real-time index) by an attribute on an associated object, Document:
@items = Item.search(
'jitters',
sql: {
...
0
votes
1
answer
377
views
Paginate Result from rails console
I'm trying to paginate the result from thinking sphinx in rails console without any pagination gem. Is it possible to do?
0
votes
1
answer
70
views
How to include associations in thinking sphinx rails
Using thinking-sphinx to fetch records and it works fine. But the issue is that I want to fetch associated records also in results to improve site performance.
Like I want to fetch pictures of ...
0
votes
1
answer
226
views
How to escape or convert specific letter on thinking-sphinx
for example when I search 'Désinfection' or 'hello(worlds)', Result = 0 because of 'é' and '('
I try to change it with '*' and spaces but no result
Sphinx Unexpected search options: [:match_mode]
...
0
votes
2
answers
257
views
autocomplete with thinking sphinx
when I search for the second word the result mismatch
for example 'web '
the result
["WEB MEDIA ","CREATIV WEB ","WEB SERVICES TECHNOLOGIES","iDURAR WEB AGENCY","WEB CREATION","DEV WEB SOLUTION","...
1
vote
0
answers
51
views
How to deploy & configure thinking sphnix on production server
i have tried install & configure thinking sphinx on local host & its working fine. When i tried to install on production server i am confuse with how to configure thinking sphinx on server.
...
0
votes
1
answer
23
views
sphinx search with specific ordre
I have list of company (what sphinx return), I want to sort them to (company with store first) without overriding the weight of fields.
I tried :
:order => 'store DESC'
it's ok but the weight ...
0
votes
1
answer
500
views
Why need to run delta indexing after new records and change in records
As per my search and understanding in delta indexing when we add new records or do changes in records we need to re index sphinx to show that data otherwise it will not show.
But I check that data is ...
1
vote
2
answers
1k
views
ThinkingSphinx::SphinxError (Unknown MySQL error)
I try to run gem 'thinking-sphinx' on my Ruby on Rails project, but something was wrong. When I run any search command on any model, I see this error: ThinkingSphinx::SphinxError (Unknown MySQL error)....
0
votes
2
answers
146
views
Sphinx not rebuild on read only database
I am using master/slave databases for my app and have 2 slave , one for sphinx and one for users and as per rule 1 master
Slave databases are set read only. Issue is that when I rebuild sphinx on ...
0
votes
1
answer
70
views
How to get sphinx (search) gem working in a PaaS such as heroku
After deploying a rails 5 application that uses the sphinx gem for searching, I get this error:
2019-02-22T01:05:28.930528+00:00 app[web.1]: D, [2019-02-22T01:05:28.930455 #4] DEBUG -- : [64986155-...
22
votes
2
answers
15k
views
dyld: Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib
I am facing the following issue on Mac when I run rake ts:index for Thinking Sphinx indexing:
dyld: Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib
I am using mysql version 8.0.13 ...
0
votes
2
answers
279
views
Thinking-sphinx FATAL: failed to create binlog.001, error=Too many open files
I am using Sphinx 2.2.11-id64-release and gem 'thinking-sphinx', '3.3.0'.
rake ts:configureworks fine and generated development development.sphinx.conf
But when running sphinx rake ts:index ts:...
0
votes
2
answers
2k
views
Can't launch sphinxsearch in docker
I'm trying to dockerize a Rails application. It uses Sphinx for search, and I can't make it run through docker.
This is what happens when I run docker-compose up and try to perform search:
web_1 ...
0
votes
1
answer
165
views
ThinkingSphinx::SphinxError Lost connection to MySQL server at 'reading initial communication packet'
I faced this problem from several days and it happens every week I am unable to understand the problem.
Sphinx automatically lost connection on production server.
ThinkingSphinx::SphinxError Lost ...
0
votes
1
answer
63
views
ThinkingSphinx::OutOfBoundsError configuration confusion
Hitting an OutOfBoundsError as a consequence of misunderstanding the proper configuration syntax (which may also be a by-product of legacy syntax).
The manual suggests a Class search taking on ...
0
votes
1
answer
25
views
Combining free text and object ids with thinking sphinx
The following index will allow free text searches on the given model's attributes:
ThinkingSphinx::Index.define :firm, :with => :active_record do
indexes activity
indexes city
end
for a form ...
1
vote
3
answers
203
views
How do I index polymorphic (STI) models in Rails 5 with Thinking Sphinx without a circular dependency?
I'm integrating a simple indexed search for a rails 5.1.4 application, using Sphinx 2.2.11-id64-release (95ae9a6) and thinking_sphinx v 4.0.0
Expected behavior:
When I submit a new search, I expect ...
0
votes
1
answer
254
views
Thinking sphinx ranking and statistics
I'm trying to set up an ability to get some numbers from my Sphinx indexes, but not sure how to get the info I want.
I have a mysql db with articles, sphinx index set up for that db and full text ...
1
vote
1
answer
75
views
Sphinx Issue with Ruby 1.9.3?
I have recently moved a web app from ruby 1.8.7 to 1.9.3 and everything is going great, except for searching. Everything was working fine before bumping ruby. Here's my controller code:
ids = ...
1
vote
1
answer
217
views
Thinking Sphinx and searching with multiple fields in ruby on rails
I'm new in sphinx, and i want to search in a model using sphinx, i did it and it worked well but with one field
this is the field of search
<%= form_tag welcome_result_path, target: '_blank' , ...
0
votes
1
answer
486
views
ruby on rails , sphinxql: syntax error, unexpected QUOTED_STRING, expecting CONST_INT or '-' near ''5') AND `active` IN ('1') AND ....
I use sphinx 3.4.0 and rails 5, when i want to search i got this error !!
sphinxql: syntax error, unexpected QUOTED_STRING, expecting CONST_INT or '-' near ''5') AND `active` IN ('1') AND ....
...
0
votes
1
answer
49
views
Thinking Sphinx : Multiple indices search
I want to create two indices for the same model and search separately
I am using
gem 'thinking-sphinx', '3.2.0'
gem 'riddle', '1.5.11'
ThinkingSphinx::Index.define :product, :with => :...
0
votes
1
answer
186
views
FATAL: no indexes found in '/home/XXXX/searchengine/config/development.sphinx.conf'
sphinx show me this error when i want to ( rake ts:start )
im using rails 5.1.4 and ruby 2.4.1
Sphinx 2.2.9-id64-release (rel22-r5006)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-...
1
vote
1
answer
197
views
Different conditions for different fields in thinking-sphinx
I have:
ThinkingSphinx::Index.define :new_post, with: :real_time do
indexes title, sortable: true
indexes text
has state, type: :string
has forum_hidden, type: :boolean
has created_at, ...
0
votes
1
answer
516
views
Rails 5, thinking sphinx, indexing and searching has meny through relationships
I have a Rails App in which I want to use Thinking Sphinx for search. I have a has many though relationship between the following models, Product has many Types through ProductType.
# Product.rb
...
0
votes
1
answer
64
views
Using ThinkingSphinx, How to query min and max weight
I want to retrieve the min(weight()) and max(weight()) using ThinkingSphinx. I tried this:
results = Work.search(
'example', :ranker => "expr('sum((4*lcs+2*(min_hit_pos==1)+exact_hit)*...
0
votes
1
answer
72
views
How to add infix and prefix indexes for nested model based on condition in sphinx search
I have a note model with polymorphic association which is like below
incident has one symptom -> (note model)
incident has many comments -> (note model)
and
I would like to do the infix ...
0
votes
2
answers
281
views
How to set infix & prefix indexing in sphinx search
I want to have infix indexing for few fields and prefix indexing for some other fields in my table. Is there a way to do it in sphinx?
I'm looking for options infix_fields & prefix_fields in ...
0
votes
1
answer
167
views
Using ActiveRecord joins with Thinking Sphinx
When using Thinking Sphinx with a has_one association from class A to B (with B having belongs_to statement), indexing on A, it is possible to use has_many association in index with join statement. ...
0
votes
1
answer
44
views
ThinkingSphinx indexing fails using ActiveRecord 5.1.3
I have recently upgraded my app to Rails 5 and I now get an error when I want to Index (see stacktrace below).
Only if I comment these two lines in my index is TS able to create the Index:
indexes ...
1
vote
2
answers
210
views
Dealing with ThinkingSphinx realtime indices when destroying records
I'm trying to convert a delta-based index in ThinkingSphinx into a realtime one. Per the docs, I've added this callback:
after_save ThinkingSphinx::RealTime.callback_for(:location)
That works just ...