Thanks for pointing this out Tim, I wasn’t aware Sphinx had this behaviour.

Can you confirm which version of Sphinx you’re running, and an example of a 
query/result that was working without distributed indices, but doesn’t when 
they’re enabled? Would love to reproduce this locally, and my current attempts 
don’t seem to have issues.

Thanks

— 
Pat

> On 18 Dec 2014, at 12:46 pm, Tim Harrison <[email protected]> wrote:
> 
> It appears as though the distributed_indices do not inherit the 
> configurations from thinking_sphinx.yml.  For me, wildcard searching was not 
> working unless I manually added the (enable_star, min_prefix_len) 
> configurations to the distributed indices, or I disabled disributed_indices.  
> Now that I understand how it works I'm off to the races.  However, I'm not 
> sure that is expected behavior.  
> 
> In any case, thanks for TS!  :-)
> 
> On Friday, August 22, 2014 10:04:28 PM UTC-4, Pat Allan wrote:
> That is indeed correct.
> 
> On 23 Aug 2014, at 12:03 pm, Yi Lin <[email protected] <javascript:>> wrote:
> 
>> Thanks I will checkout that setting. So if I set it to false, then “index 
>> resource” is not created, in that case, is Resource.search smart enough to 
>> look at “index resource_core” to perform the search? 
>> 
>>> On Aug 22, 2014, at 6:53 PM, Pat Allan <[email protected] 
>>> <javascript:>> wrote:
>>> 
>>> Hi Yi
>>> 
>>> Distributed indices are useful if you have multiple indices for a model, 
>>> and want to search across all of those at once. It is not a super common 
>>> use-case, though.
>>> 
>>> If you want to disable distributed indices you can by setting 
>>> `distributed_indices: false` for each environment in 
>>> `config/thinking_sphinx.yml` - this setting was introduced in TS v3.1.1.
>>> 
>>> — 
>>> Pat
>>> 
>>> On 23 Aug 2014, at 7:54 am, Yi Lin <[email protected] <javascript:>> 
>>> wrote:
>>> 
>>>> Regarding distributed index, why is it necessary in 
>>>> ThinkingSphinx-generated sphinx.conf? 
>>>> 
>>>> Specifically, I am referring to this block (my indexed class is called 
>>>> Resource): 
>>>> 
>>>> index resource
>>>> {
>>>> }
>>>> 
>>>> If I remove the above, and just have:
>>>> 
>>>> index resource_core
>>>> {
>>>> ...
>>>> }
>>>> 
>>>> would ThinkingSphinx.search still work? Why is the distributed index 
>>>> necessary in the first place?
>>>> 
>>>> Yi
>>>> 
>>>> 
>>>> 
>>>> On Saturday, June 21, 2008 1:17:38 PM UTC-7, Pat Allan wrote:
>>>> This is an email just to highlight something that isn't actually an  
>>>> error, but trips a lot of people up (myself included).
>>>> When you run an index on your data, you may get the following error  
>>>> message:
>>>> > distributed index 'model_name' can not be directly indexed; skipping
>>>> 
>>>> A distributed index is made up of other indexes. It doesn't need to be  
>>>> indexed, but Sphinx tries to anyway, and then complains when it can't.  
>>>> I'm not sure about the reasoning for this, but it's not important: You  
>>>> can ignore the error, it doesn't stop anything working, searching and  
>>>> indexing will happen as expected.
>>>> 
>>>> Cheers
>>>> 
>>>> -- 
>>>> Pat
>>>> e: p...@ <>freelancing-gods.com <http://freelancing-gods.com/>    || m: 
>>>> 0413 273 337
>>>> w: http://freelancing-gods.com <http://freelancing-gods.com/> || p: 03 
>>>> 9386 0928
>>>> discworld: http://ausdwcon.org <http://ausdwcon.org/> || skype: patallan
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> 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] <javascript:>.
>>>> To post to this group, send email to [email protected] 
>>>> <javascript:>.
>>>> Visit this group at http://groups.google.com/group/thinking-sphinx 
>>>> <http://groups.google.com/group/thinking-sphinx>.
>>>> For more options, visit https://groups.google.com/d/optout 
>>>> <https://groups.google.com/d/optout>.
>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Thinking Sphinx" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/thinking-sphinx/xO9rDJw1d5w/unsubscribe 
>>> <https://groups.google.com/d/topic/thinking-sphinx/xO9rDJw1d5w/unsubscribe>.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] <javascript:>.
>>> To post to this group, send email to [email protected] 
>>> <javascript:>.
>>> Visit this group at http://groups.google.com/group/thinking-sphinx 
>>> <http://groups.google.com/group/thinking-sphinx>.
>>> For more options, visit https://groups.google.com/d/optout 
>>> <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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/thinking-sphinx 
>> <http://groups.google.com/group/thinking-sphinx>.
>> For more options, visit https://groups.google.com/d/optout 
>> <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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/thinking-sphinx 
> <http://groups.google.com/group/thinking-sphinx>.
> For more options, visit https://groups.google.com/d/optout 
> <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 [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.

Reply via email to