当前位置: 动力学知识库 > 问答 > 编程问答 >

ruby on rails - 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?

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: