I've viewed the document on provided link many times. Also, I checked Sphinx documentation, too. I just couldn't get it working as the document said...I wonder where I am wrong....
One question, my ror app controller @results_web= Web.search @query_string, :per_page=>5 The log when I did search 'rss' is: Processing SearchController#index (for ::ffff:10.34.118.192 at 2009-11-01 02:29:38) [POST] Parameters: {"q"=>"rss"} Rendering search/index Querying Sphinx: rss Web Load (0.3ms) SELECT * FROM `pages` WHERE (`pages`.`id` IN (10000015,10000023,10000024,10000025,10000026)) Completed in 19ms (View: 18, DB: 3) | 200 OK I found that the default behavior of ROR is to talk to Sphinx at 127.0.0.1:3312 no matter what I wrote in config/sphinx.yml. Please teach me how to debug and what to look at? Sting 2009/10/31 Pat Allan <p...@freelancing-gods.com> > > To get Thinking Sphinx talking to a remote server, you need to set it > in your sphinx.yml file, as address: > http://freelancing-god.github.com/ts/en/advanced_config.html > > production: > address: 10.0.0.4 > > Not sure about the distributed indexes, but try the above first, and > let's confirm this is working. If the distributed problem is still > happening, let me know. > > -- > Pat > > On 30/10/2009, at 2:04 PM, sting...@gmail.com wrote: > > > > > I have problems regarding setting up distributed index. I've read the > > documents everywhere I can find in Google.... :~~ > > > > problem 1: > > ThinkingSphinx always search 127.0.0.1 > > > > in development.sphinx.conf > > searchd > > { > > listen = xx.xx.xx.xx:3312 <= listen to specific localhost ip, > > not 127.0.0.1 > > log = /xxxx/log/searchd.log > > query_log = /xxx/log/searchd.query.log > > pid_file = /xxx/log/searchd.development.pid > > } > > > > index web_core > > { > > source = web_core_0 > > path = /xxxx/db/sphinx/development/web_core > > charset_type = zh_cn.utf-8 > > charset_dictpath = /xxxx > > html_strip = 1 > > } > > > > index web > > { > > type = distributed > > agent = xx.xx.xx.xx:3312:web_core <= the IP of this server > > agent = yy.yy.yy.yy:3312:web_core <= the IP of the other server > > } > > > > > > > > in controller > > @results_web= Web.search @query_string, :per_page=>5 > > > > > > When I use browse and point to the controller url, here is the error > > message > > > > Connection to 127.0.0.1 on 3312 failed. Connection refused - connect > > (2) > > > > > > How can I make Thinking Sphinx and RoR to search the IP I want it to > > search (xx.xx.xx.xx) > > > > > > > > > > > > > > Problem2: > > Ther result doesn't contain (remote distributed index) content. > > > > With above setting, I then change searchd listen interface to any > > > > searchd > > { > > listen = 3312 <= listen to all interface > > log = /xxxx/log/searchd.log > > query_log = /xxx/log/searchd.query.log > > pid_file = /xxx/log/searchd.development.pid > > } > > > > > > The controller can work now.... but the result always constraint to > > "local index" > > Even I remark the agent, controller can still do search! But still > > "local index"...NO remote agent index!! > > index web > > { > > type = distributed > > # agent = xx.xx.xx.xx:3312:web_core > > # agent = yy.yy.yy.yy:3312:web_core > > } > > > > > > What's wrong with my config! HELP! > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to thinking-sphinx@googlegroups.com To unsubscribe from this group, send email to thinking-sphinx+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---