Hi Firstly - Riddle, for configuration settings, very closely follows Sphinx's config structure. So, you have indexer settings, searchd settings, sources and indices/indexes. This is all driven via Riddle::Configuration - create a new instance of that, and then attach indices to it - and a source or more for each of those indices.
http://rdoc.info/gems/riddle/1.2.2/Riddle/Configuration As you can see from the list of classes under the Riddle::Configuration namespace, there's different index classes and source classes - so make sure you use the right ones. And once you've built the object tree to your liking, you can get the generated configuration by calling render on your Riddle::Configuration instance. Please keep in mind - you really need to understand the Sphinx configuration file to make sense of this. Riddle is just an elegant but simple layer over the top. But also: if you're using Rails, why not use Thinking Sphinx instead? -- Pat On 23/02/2011, at 9:18 PM, paritosh wrote: > Hi, > > How do you create indexes and do sphinx configuration for riddle. I am > new to rails and want to use riddle. There is no documentation for > riddle to do that. > > Can u help !!! > > regards > > -- > 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. > -- 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.
