Hi, thanks for this.
It clears up some of my confusion at least. :-)

What settings should I be putting in sphinx.yml anyway?
listen: 127.0.0.4:3313

or

listen: 127.0.0.1
port: 3313

or should I use address instead of listen?

Thanks.

On Mar 4, 5:48 am, Pat Allan <[email protected]> wrote:
> Hi Darren
>
> Sorry for not getting back to you sooner. While Sphinx 0.9.9 uses the listen 
> setting, TS only really pays attention to the address and port settings in 
> sphinx.yml - that may be the cause of the problem.
>
> Hope this clears things up - again, sorry I didn't respond faster.
>
> --
> Pat
>
> On 27/02/2010, at 9:29 AM, Darren wrote:
>
> > Hi, thanks for creating such a great product, it's really made adding
> > search to my applications a breeze.
>
> > Here is what I want to set up.
> > Run multiple sphinx daemons on different ports all bound to 127.0.0.4
> > (a localhost alias in my hosts file).
> > This is on a Linux box.
> > I am running Sphinx 0.9.9-release (r2117) and thinking-sphinx (1.3.15)
> > as a gem.
>
> > There are a number of issues and it can get a bit confusing so I'll
> > try to explain it as clearly as possible.
>
> > I have the following in my sphinx.yml:
> > production:
> >  listen: 127.0.0.4:3313
>
> > I then run rake RAILS_ENV=production ts:rebuild to generate my config.
>
> > I then get the following in my generated config:
> > searchd
> > {
> >  listen = 127.0.0.4:3313
> >  ...
> > }
>
> > But when I do a search my app insists on connecting to 127.0.0.1 on
> > port 9312.
> > This fails of course.
>
> > I can get it to work by hacking the generated config.
> > If I put...
> > searchd
> > {
> >  listen = 127.0.0.1
> >  port = 3313
> >  ...
> > }
> > ...I can get search to work.
> > But if I change it back to 127.0.0.4 then the app tries to connect to
> > 127.0.0.1 on port 9312 again.
> > I really need my sphinx to bind to 127.0.0.4.
>
> > Also, if I regenerate the config it fails again as the generated
> > config doesn't include the port on a separate line.
>
> > I also run Sphinx with a Java application and that seems to have no
> > problems binding and connecting to 127.0.0.4 on any port I specify.
>
> > Sorry for such a long post but I wanted to include as much detail as
> > possible as it's a bit hard to follow the various issues.
> > I've been through the various posts related to ports and addresses on
> > this forum but haven't seen anything like this problem.
>
> > Thanks in advance for any help.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Thinking Sphinx" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to