search for: thinkingsphinx

Displaying 7 results from an estimated 7 matches for "thinkingsphinx".

2008 Aug 20
2
Re: Stubbing out ThinkingSphinx for Rspec
..., I came across the only thread on the Interwebs which seems to cover this topic - it''s over a year old, but I think they have a solution which could work around the issues you pointed out. However, I couldn''t work out how to get their subbing approach to work with the way the ThinkingSphinx syntax looks right now... Back in the day, they were doing this; # Controller action: term = "*#{params[:search]}*" ThinkingSphinx::Search(term, :with => { :searchable => 1 } }) # RSpec example: it "should build query" do ThinkingSphinx::Search.should_receive(:searc...
2008 Sep 17
1
Stubbing Paperclip calls to Amazon S3 (for Rspec)
...9;'ve done very little in the way of spec''ing dependencies on external services, so any ideas on how to do this with Paperclip & S3 would be most appreciated. I''m happy with stubbing out Thinking Sphinx - would Paperclip be much different to this (?); def do_get ThinkingSphinx::Search.stub!(:search).and_return(users) get :index, :search => "bob" end Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: T...
2009 Apr 30
2
how to search all fields for a string in SQL ?
Using SQL or activerecord I am not sure how to search all fields for a specific value ? I know how to do this by just writing ruby code. To do it in SQL or an activerecord find w/condition, I don''t know how. I actually am supposed to combine an find w/ condition and a search all fields for a value and AND those together. I think perhaps it can''t be done with a single find ?
2008 Nov 25
0
Full text search with complicated conditions
Hi all, I am going to do full text search, but only on records that match quite complicated conditions. I have implemented these as custom named_scopes, with some SQL. Does anyone know if I can use these named scopes in filtering out results returned for example by Sphinx? I have looked at ThinkingSphinx, but it allows you to specify only simple conditions conditions and does know nothing about ActiveRecord associations. Is there any other tool more aware of AR than Sphinx? Best, H. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Go...
2010 Dec 01
0
Thinking sphinx + rails 3 issue in results set
...roducing the query, i can able to see the results. [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE (`users`.`id` IN (272, 275, 280, 281, 282, 283, 288, 289, 290, 291))[0m @results [#<User #.............................................................">] ==============ThinkingSphinx::Search= length==== 10 When i try the below query it will not generate result or produces empty result...... When i try this same query with rails db console it producing the data, so we sure that we have the data in database... please help me on this. query: ====== @results = User.search '...
2014 Jun 03
0
Starting Thinking Sphinx on Joyent SmartOS with svcadm
I followed this tutorial: http://www.neo.com/2013/10/09/unicorn-on-joyent-smartos and the RailsCast about configuring Nginx and Unicorn, and successfully set up my first non-Passenger/Apache Rails app last weekend. Buoyed by this success, I next set about trying to get ThinkingSphinx to restart when the server starts, and managed to get my server to run away with 115% server usage. (Oddly, while that was going on, TS was working just fine.) As you know, starting TS requires one to cd into the Rails directory, then issue a rake command: rake ts:start Using these commands to s...
2010 Jan 25
3
Dynamic attributes!
I want to create a general model ''Product'' that I will be able to store several attributes in it. For example the attributes :id :name :description are pretty stantard. So each product will have this attributes. However, I wanted to know if it is possible to create dynamic attributes. In the case of a cell phone device I might want to store the IMEI of the phone, this