I have 3 rails applications that i'm trying to use the same searchd instance. These applications all have the same models, but different DB's so i'm trying to create 3 different indexes. I'm currently testing with just 2 indexes to make sure it will work. Here is my sphinx config file
https://gist.github.com/adamgamble/74408a6b82c78b562c0a Here is the output from sphinx when I reindex Sphinx 2.1.4-id64-release (rel21-r4421) Copyright (c) 2001-2013, Andrew Aksyonoff Copyright (c) 2008-2013, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... indexing index 'resource_core'... collected 35337 docs, 3.4 MB sorted 0.5 Mhits, 100.0% done WARNING: 303 duplicate document id pairs found total 35337 docs, 3375093 bytes total 13.035 sec, 258923 bytes/sec, 2710.90 docs/sec indexing index 'resource_core_1'... collected 33 docs, 0.0 MB sorted 0.0 Mhits, 100.0% done total 33 docs, 1032 bytes total 0.003 sec, 262796 bytes/sec, 8403.36 docs/sec skipping non-plain index 'resource'... skipping non-plain index 'resource_1'... total 6 reads, 0.001 sec, 560.3 kb/call avg, 0.2 msec/call avg total 23 writes, 0.014 sec, 319.1 kb/call avg, 0.6 msec/call avg rotating indices: successfully sent SIGHUP to searchd (pid=27076). I was under the impression that I could search like so ThinkingSphinx.search 'test', classes: [Resource], index: 'resource_core_1' and use the resource_core_1 index, but it uses the resource_core index instead. In fact it seems to ignore that attribute because I could fill anything there and it doesn't care. So my question #1 is, is this syntax not correct? Question #2 is there a way to specify the index application wide so I don't have to specify it on every query. If you need more information i'll be happy to post it. Rails 3.2.18 ThinkingSphinx 3.1.0 Thanks Adam Gamble -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
