Comments on: Sphinx Search Engine 0.9.7, Ruby Client API 0.3.0 https://kpumuk.info/ruby-on-rails/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/ In my blog I'll try to describe about interesting technologies, my discovery in IT and some useful things about programming. Mon, 07 Sep 2015 23:12:23 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: jerk (tschitschereengreen) https://kpumuk.info/ruby-on-rails/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/comment-page-1/#comment-91549 Thu, 30 Aug 2007 11:50:35 +0000 http://kpumuk.info/ror-plugins/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/#comment-91549 Hey we just implemented it and are really really happy with it: search query duration has an average of 0,0000s on about 20.000 documents. Thats awesome.

jerk

]]>
By: Dmytro Shteflyuk https://kpumuk.info/ruby-on-rails/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/comment-page-1/#comment-40175 Fri, 27 Apr 2007 14:54:06 +0000 http://kpumuk.info/ror-plugins/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/#comment-40175 Good point, thank you!

BTW,

1
eval("#{m}(#{args})")

could be rewritten using

1
self.send(m, args)
]]>
By: joost https://kpumuk.info/ruby-on-rails/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/comment-page-1/#comment-40172 Fri, 27 Apr 2007 14:50:09 +0000 http://kpumuk.info/ror-plugins/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/#comment-40172 For those wanting backwards compatibility with set_server methods instead of SetServer. Use this code:

1
2
3
4
5
6
7
8
9
10
class Sphinx::Client
  def method_missing(m, *args)
    m = m.to_s.camelize
    if self.methods.include?(m)
      eval("#{m}(#{args})")
    else
      raise NoMethodError, "undefined method '#{m}'"
    end
  end
end
]]>
By: Dmytro Shteflyuk https://kpumuk.info/ruby-on-rails/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/comment-page-1/#comment-35412 Fri, 13 Apr 2007 08:15:52 +0000 http://kpumuk.info/ror-plugins/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/#comment-35412 You are right about ruby code conventions. But it is more simple for us to have identical syntax for all languages. I would add more ruby-like syntax in 0.3.1 (hope on this weekend).

]]>
By: joost https://kpumuk.info/ruby-on-rails/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/comment-page-1/#comment-35384 Fri, 13 Apr 2007 06:17:17 +0000 http://kpumuk.info/ror-plugins/sphinx-search-engine-0-9-7-ruby-client-api-0-3-0/#comment-35384 Great! Shouldn’t this version be also on RubyForge? I saw only v0.2.0 there..

BTW. My opinion is that Ruby methods should always be of the form: object.method_call. And not object.MethodCall..
But this is just my humble opinion.

]]>