Hi Pavel On 12/05/2010, at 10:54 PM, snusmu wrote:
> i am wondering if it would somehow be possible for all of them to use > one port and one searchd instance? i imagine it would need > production.sphinx.conf merged? If you can get all the indexes and sources in one conf file, then yes, you could just have one searchd instance on one port. > would that be difficult to merge them? is it better to leave them as > they are, having one searchd instance per app? Without some hacking, I think you'll find indexes and sources with the same names in the final file, which Sphinx won't like. There will also be duplicate indexer and searchd settings, and Sphinx will probably not like that either. In short: it will be tricky. > second question is this: > > apart from "database per application" dbs there is one external > database. > > external db is Shared between all the apps (using establish_connection > function in the model) > > all the apps (app1,app2,app3) can add/remove records from Shared db > > f.ex. app2 can see/modify records inserted by app1. > > i added TS search for model using shared db (in define_index), but, if > f.ex. i create/update a record on app1, app2 cannot find it. > > Is it because db/sphinx/production/sharedmodel_delta gets updated Only > on app1, and not on app2? If you're using default deltas and/or multiple searchd instances, yes. > If so, how can i make app2 find records created/updated by app1? Use a single searchd instance and delayed deltas. > > or is it possible to somehow merge index of Shared db tables so that > there would be just one index which would also be shared between apps? Hmm, this is (again) tricky. I'm afraid there's no easy answers for anything you're trying to do. But good luck in finding a solution! -- Pat -- 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.
