The Sphinx config file hints to it supporting multiple sources for one index, how do I actually specify it?
Here’s the snippet from the config file:
# document source(s) to index
# multi-value, mandatory
# document IDs must be globally unique across all sources
source = src1
I’ve tried setting it in the following formats:
source = src1, src2
source = [src1, src2]
and I’ve also tried using the source variable twice, eg:
source = src1
source = src2
I suspect that I’m just being a dunce, as I’m not sure of the syntax to use in the config file. Any ideas?
Using the second code snippet I get the following error:
ERROR: index 'iwa': fulltext fields count mismatch (me=iwa_publications, in=iwa_events, myfields=3, infields=8).
The two sources are iwa_events and iwa_publications. Both have unique id columns, and both sources work when indexed individually.
If you want to search multiple indexes at once you have to specify them in your PHP code, not in the configuration file.Just seperate the indexes in your
Querymethod (see documentation):According to the documentation you can.
Your second code snippet is the correct format to list multiple sources. Please edit your question to tell us what your actual problem is.