Hi-

I was looking at the method in thinking_sphinx.rb:

  def self.unique_id_expression(adapter, offset = nil)
    "* #{adapter.cast_to_int context.indexed_models.size} + #{offset
|| 0}"
  end


It appears from this that sphinx would like the id attribute to be
unique across all indices.  Is this true?  I didn't see anything about
that in the sphinx spec.

PS. I'm looking into the notion of a composite ID for a multitenant
platform, so trying to find out if there is a cross-model unique ID
requirement in sphinx, or if the ID merely needs to be unique with a
particular model.

Thanks,
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to