Search code examples
ruby-on-railsrubysearch-enginesphinx

Can the Sphinx Search Engine index a folder of xml files?


I have folders that contain xml that I need to index in Sphinx. I explored the xmlpipe2 driver, and my understanding is that it only reads xml generated from a script, aka, one source. Is there a way to index a folder of xml files if I don't have the option of putting it a single xml file?


Solution

  • a XMLPipe Script is just a script that outputs XML, which sphinx then ingests.

    It doesnt matter WHERE that script, gets the data from that it outputs.

    It could get it from other the XML files, the script would just walk the folder structure, read all the files, and output XML.