Thinking Sphinx is built only to work with ActiveRecord models built on top of SQL databases, I'm afraid, so you can't pull in XML sources.
You could investigate using Riddle directly with XML sources and see if that'll lead to a solution that suits - it's a bit beyond the scope of code snippets though.
On 19/06/2012, at 11:17 PM, Sam Ulu wrote:
> Using thinking-sphinx with Rails3, how do I get to set the data source with xmlpipe2 to directly access a collection of xml files, for indexing? For instance, I have a model "Paper" that I need to index its table columns (think fields - paper_title, author, paper_abstact & attributes - paper_no) from a collection of XML files supplied weekly. Please I am a newbie, so any sample code snippets in answers will be highly appreciated...Thanks.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.