开发者

How add html and text files to Sphinx index?

From Sphinx refer开发者_Go百科ence manual: «The data to be indexed can generally come from very different sources: SQL databases, plain text files, HTML files, mailboxes, and so on»

But I can't find how add text files and html files to index. Quick Sphinx usage tour show setup for MySQL database only.

How I can do this?


Your should look at the xmlpipe2 data source.

From the manual:

xmlpipe2 lets you pass arbitrary full-text and attribute data to Sphinx in yet another custom XML format. It also allows to specify the schema (ie. the set of fields and attributes) either in the XML stream itself, or in the source settings.


I would suggest that you insert the texts in a database. That way you can retrieve them and probably highlight your search results much easier and faster.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜