sonxurxo
sonxurxo

Reputation: 5718

Thinking Sphinx: same app installed multiple times

I have a RoR app that is installed multiple times in the same machine. The app is the same, it's just installed with different names (i.e: app1, app2, ...).

The app uses ThinkingSphinx for searching. It has one index for the model Element. Each installation of the app will have it's own database with its own Elements.

So my question is:

Thank you in advance

Upvotes: 1

Views: 128

Answers (1)

pat
pat

Reputation: 16226

Separate Sphinx instances (running on different ports) is definitely the way to go.

Sphinx requires every document to have a unique id, even between different index files, so managing that with a standard Thinking Sphinx-generated configuration is painful with multiple applications - you'd need to manage the single configuration file yourself, really, plus adapt Thinking Sphinx to only search across the relevant data set for each app. It could be interesting on some level, but my gut feel is that it's really not worth the effort or time. Use different ports, different daemons, much easier.

Upvotes: 1

Related Questions