I’m afraid this isn’t currently possible with Thinking Sphinx.
The major complication here is that every single document in Sphinx must have a
unique id (even documents in different indices). In a single app, TS does this
by calculating an offset for primary key values based on the number of indices
defined. If this approach was to work across multiple apps, TS would need to
know about all indices that may possibly be hosted by the single Sphinx
instance. You’d also need some way to combine the configuration files in a way
that was reliable.
This all isn’t impossible, but it is very difficult and almost certainly not
worth the effort.
> On 21 Sep 2016, at 5:30 AM, man...@acceleweb.com wrote:
> I have 4 Rails projects all using their own Sphinx on different ports.
> I would like to consolidate them all to use one Sphinx and able to search
> across all 4.
> Is there a way I can use ThinkingSphinx to index each project into a separate
> namespace or domain and then search against that specific namespace/domain or
> have option to search across all namespaces/domains?
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to thinking-sphinx+unsubscr...@googlegroups.com
> To post to this group, send email to firstname.lastname@example.org
> Visit this group at https://groups.google.com/group/thinking-sphinx
> For more options, visit https://groups.google.com/d/optout
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.