Re: [ts] index collection of xml files directly without saving collection to dB

25 views
Skip to first unread message

Pat Allan

unread,
Jun 23, 2012, 11:00:49 AM6/23/12
to thinkin...@googlegroups.com
Hi Sam

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.

Cheers

--
Pat

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 received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/Tnyi3yBBUZsJ.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.



Sam Ulu

unread,
Jun 28, 2012, 2:00:50 PM6/28/12
to thinkin...@googlegroups.com
Thanks Pat. 
So I'm assuming that besides Riddle, I might have to load all my xml files into an SQL dB, update weekly and use the dB with thinking-sphinx.


On Saturday, June 23, 2012 11:00:49 AM UTC-4, Pat Allan wrote:
Hi Sam

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.

Cheers

--
Pat

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 received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/Tnyi3yBBUZsJ.

> To post to this group, send email to thinking-sphinx@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphinx+unsubscribe@googlegroups.com.

Pat Allan

unread,
Jun 28, 2012, 8:03:16 PM6/28/12
to thinkin...@googlegroups.com
Sure, that option would work well enough too.

--
Pat

On 28/06/2012, at 7:00 PM, Sam Ulu wrote:

> Thanks Pat.
> So I'm assuming that besides Riddle, I might have to load all my xml files into an SQL dB, update weekly and use the dB with thinking-sphinx.
>
>
> On Saturday, June 23, 2012 11:00:49 AM UTC-4, Pat Allan wrote:
> Hi Sam
> 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.
>
> Cheers
>
> --
> Pat
>
> 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 received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> > To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/Tnyi3yBBUZsJ.

> > To post to this group, send email to thinkin...@googlegroups.com.
> > To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.


> > 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 view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/h65gYn_kKTIJ.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages