sphinx

Does Sphinx auto update is index when you add data to your SQL?

蓝咒 提交于 2019-12-05 02:38:27
问题 I am curious as to whether or not Sphinx will auto update its index when you add new SQL data or whether you have to tell it specifically to reindex your db. If it doesn't, does anyone have an example of how to automate this process when the database data changes? 回答1: As found in the sphinx documentation part about real-time indexes Real-time indexes (or RT indexes for brevity) are a new backend that lets you insert, update, or delete documents (rows) on the fly. So to update an index on the

使用rst2pdf拓展sphinx生成PDF

不想你离开。 提交于 2019-12-04 23:08:02
当初项目文档是用sphinx写的,一套rst下来make html得到一整个漂亮的在线文档。现在想要将文档导出为离线的handbook pdf,于是找到了rst2pdf这个项目,作为sphinx的拓展,然后加上少量配置即可输出中文PDF。rst2pdf简介rst2pdf是一个将 reStructuredText 转换为 PDF 的工具,具有下列特性:自定义页面布局支持层叠样式表支持内嵌TTF和Type1字体支持几乎所有语言的语法高亮使用reStructuredText作为源文件支持字间距调整安装easy_i... 继续阅读 : 码农场 » 使用rst2pdf拓展sphinx生成PDF 原文链接 : http://www.hankcs.com/program/python/the-use-of-rst2pdf-to-expand-sphinx-to-generate-pdf.html 来源: oschina 链接: https://my.oschina.net/u/1410510/blog/388206

Sphinx 2.0.4 Install Error with MAMP 2.0: Can't Find MySQL Headers

瘦欲@ 提交于 2019-12-04 20:14:05
Developing locally in MAMP and need Sphinx to work with MAMP's MySQL. Basically hitting a dead end during $ sudo make . MAMP installs without some necessary resources for Sphinx integration, mainly a mysql lib directory and an include directory filled with C header source files. These were downloaded and installed successfully (using CMake) into the following directories: /Applications/MAMP/Library/include/mysql /Applications/MAMP/Library/lib/mysql After unzipping Sphinx and running: sudo ./configure --prefix=/usr/local/sphinx --with-libstemmer --with-mysql=/Applications/MAMP/Library I got: **

Any ideas why Thinking Sphinx Rake tasks are not running?

瘦欲@ 提交于 2019-12-04 19:55:33
问题 I'm finding that Thinking Sphinx sometimes errors out when I try to run its Rake tasks. Sometimes the tasks work fine, and sometimes I get errors like the one below. I'm running the tasks as a normal user, not root. Not using sudo. In the example below, searchd is still running after the Rake task fails. I've also seen similar errors with ts:rebuild . Has anyone else seen this? I'm using Sphinx 0.9.9-release (r2117) I'm using Thinking Sphinx 1.4.4 instead of the latest version because I'm on

Sphinx/Solr/Lucene/Elastic Relevancy

谁说胖子不能爱 提交于 2019-12-04 19:39:10
We have an extremely large database of 30+ Million products, and need to query them to create search results and ad displays thousands of times a second. We have been looking into Sphinx, Solr, Lucene, and Elastic as options to perform these constant massive searches. Here's what we need to do. Take keywords and run them through the database to find products that match the closest. We're going to be using our OWN algorithm to decide which products are most related to target our advertisements, but we know that these engines already have their own relevancy algorithms. So, our question is how

How do I geo-search multiple models with ThinkingSphinx?

依然范特西╮ 提交于 2019-12-04 18:41:22
I have two models indexed for searching (User and Item). I'm trying to do a geo-search across models: ThinkingSphinx::Search.search('keywords', :geo => [ degrees_to_radians(params[:lat].to_f), degrees_to_radians(params[:lon].to_f) ], ) But I only get an error: Sphinx Error: index item_core,item_delta,user_core,user_delta: unknown latitude attribute '' Searching each model individually works fine... but I've no idea what the problem here is. Here are the indexes: User Index: define_index do indexes [:first_name, :last_name], :as => :name indexes login indexes email indexes headline indexes

Sphinx Search / MySQL find most common words

萝らか妹 提交于 2019-12-04 18:04:36
I have a sphinx search index and would like to find what are the most common words in my index. Ideally have a list of words ordered by frequency. If it is not possible to do it using Sphinx, is there a way to query a mysql table's text fields to get the same stat? Yes. This is quite simple. Build them with indexer using the --buildstops and --buildfreqs flags. indexer --config /path/to/sphinx.conf indexName --buildfreqs --buildstops freq_wordlist.txt 100000 This example gives you the first 100000 word in your sphinx index ordered by its frequency Build them with indexer using the --buildstops

Sphinx search: charset table difficulties

夙愿已清 提交于 2019-12-04 17:21:11
I am loosing my mind on this for two days now... I would like to use slovenian letters in sphinx search, all english ones + č ž š (and just in case ć) I was looking all over the net to get the proper chars but I found squat... so I decided to make my own step by step... this is my index index classifieds { source = classifieds_src path = c:\Sphinx\data\classifieds docinfo = extern min_infix_len = 2 infix_fields = title,keywords,summary,text expand_keywords = 1 enable_star = 1 charset_type = utf-8 charset_table = 0..9, a..z, _, A..Z->a..z,-, U+002C, \ U+010C->U+010D, U+0106->U+0107, U+0160->U

Thinking Sphinx not indexing newly added records

一世执手 提交于 2019-12-04 11:27:41
I am using sphinx to search on 2 models along with their associations. I am using delta indexing. Things work fine on my dev box in dev mode (Ubuntu). However, on staging box production env, when I create new records, I need to build the index again in order to make the newly created records searchable. Even weird is that when I create records using script/console, they seem to be getting indexed and are searchable. For the associations to work after update, I have an after_save method for all the association models that set the delta of these two model records to true. I am not sure if this

文档工具的王者Sphinx

删除回忆录丶 提交于 2019-12-04 09:35:38
Sphinx https://www.sphinx.org.cn/ Sphinx是一个工具,可以轻松创建由Georg Brandl编写并根据BSD许可证授权的智能和美观文档 它最初是为 Python文档 创建的,它具有出色的工具,可用于各种语言的软件项目文档。 当然,这个站点也是使用reStructuredText源创建的 输出格式: HTML(包括Windows HTML帮助),LaTeX(适用于可打印的PDF版本),ePub,Texinfo,手册页,纯文本 广泛的交叉引用: 语义标记和功能,类,引用,词汇表术语和类似信息的自动链接 分层结构: 轻松定义文档树,自动链接到平级,上级和下级 自动索引: 一般索引以及特定于语言的模块索引 代码处理: 使用 Pygments 荧光笔自动突出显示 扩展: 自动测试代码片段,包含Python模块(API文档)中的文档字符串 等 贡献的扩展: 用户在第二个存储库中 贡献 了50多个扩展;其中大多数可以从PyPI安装 入门 https://www.sphinx.org.cn/usage/quickstart.html 例子 https://github.com/plasmatech8/Python-Sphinx-Demo 来源: https://www.cnblogs.com/lightsong/p/11854130.html