That is indeed correct. On 23 Aug 2014, at 12:03 pm, Yi Lin <[email protected]> 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]> 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]> 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: [email protected] || m: 0413 273 337 >>> w: http://freelancing-gods.com || p: 03 9386 0928 >>> discworld: 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]. >>> 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. >> >> >> -- >> 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. >> To unsubscribe from this group and all its topics, 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. > > > -- > 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. -- 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.
