Indexing files with SPHINX/ultrasphinx

拜拜、爱过 提交于 2019-12-13 05:49:22

问题


I am developing an application which will scrape data from websites. The details like page_url, site_url, last_modified will be stored in the database and page_content will be stored in the file. Later on I want to search the content of the file. I am trying to Thinkingsphinx to achieve this. Does any body have an idea how to implement it ?


回答1:


I don't believe Sphinx / ThinkingSphinx is right for you as they are intended to talk to databases.

Take a look at this thread: http://groups.google.com/group/thinking-sphinx/browse_thread/thread/69cdc1c8e1c096ff/aa4ae8e21c42e67c?lnk=gst&q=files#aa4ae8e21c42e67c




回答2:


Could you switch to Solr Full Text search instead? I hear it can even index binary files like PDF or word

http://lucene.apache.org/solr/tutorial.html[enter link description here][1]



来源:https://stackoverflow.com/questions/5389267/indexing-files-with-sphinx-ultrasphinx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!