sphinx

Centos7.0下Coreseek + Sphinx 安装及配置,报错解决

匿名 (未验证) 提交于 2019-12-02 22:59:29
1.mmseg中文分词的解压安装 一、安装前提必备先安装工具 yum -y install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel 1.进入安装包存放路径/usr/local/src,准备coreseek安装包 cd /usr/local/src wget http://pppboy.com/wp-content/uploads/2016/02/coreseek-3.2.14.tar.gz 2.解压安装 tar zxvf coreseek-3.2.14.tar.gz 3.进入目录 cd coreseek-3.2.14/mmseg-3.2.14/ 4.执行以下命令 ./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决 ./configure --prefix=/usr/local/mmseg3 make make install 注意: #如果make之后,出现以下提示 libtool: Version mismatch error. This is libtool 2.4.2, but the libtool: definition of this LT_INIT comes from libtool 2

Full Text Search with Firebird and Delphi

大兔子大兔子 提交于 2019-12-02 21:16:28
I'm looking into implementing full text search on our Firebird database. Our requirements are: Every field in several tables should be indexed. When a result is found we should be able to find out the originating table. The index can be stored in the database or in the file system. The results of the search (BigInt primary keys) must be used to join with the original records in the database to display the records in a table. Can anybody recommend a decent way to achieve what we need? I've looked at somehow integrating DotLucence into Delphi, but can't really find very much information on how

Sphinx + Read the docs theme

人走茶凉 提交于 2019-12-02 19:04:14
前言: 使用 Sphinx 生成文档和使用 Read The Docs 的 readthedocs/sphinx_rtd_theme ,假设是在Windows上运行并已安装好 python,可以执行python的 pip 命令 通过 pip命令安装 sphinx 和 sphinx_rtd_theme pip install -U Sphinx pip install sphinx-rtd-theme 在一个系统中的一个空的文件夹中运行: 如我在D 盘中新建了一个名字为 sphinx 的文件夹 sphinx-quickstart D:\>mkdir sphinx-study D:\>cd sphinx-study D:\sphinx-study>sphinx-quickstart Welcome to the Sphinx 2.2.0 quickstart utility. Please enter values for the following settings (just press Enter to accept a default value, if one is given in brackets). Selected root path: . You have two options for placing the build directory for Sphinx

Sphinx PHP API order differs from Search Daemon

谁都会走 提交于 2019-12-02 17:14:52
问题 I've setup Sphinx and having an issue with the PHP API ordering returning - the search daemon returns the correct array response however the PHP API seems to returns in ID order. Does anyone have any idea why it is doing the following.. UPDATE: I've noticed the problem seems to occur with single word searches.. eg if I entered 'guide to dyspraxia' the result from the PHP API looks fine - any ideas why? // running via SSH using the 'search dyspraxia' (search daemon command) displaying matches:

Any reason not use PostgreSQL's built-in full text search on Heroku?

孤人 提交于 2019-12-02 14:16:41
I'm preparing to deploy a Rails app on Heroku that requires full text search. Up to now I've been running it on a VPS using MySQL with Sphinx. However, if I want to use Sphinx or Solr on Heroku, I'd need to pay for an add-on. I notice that PostgreSQL (the DB used on Heroku) has built-in full text search capability. Is there a reason I couldn't use Postgres's full-text search? Is it slower than Sphinx or is there some other major limitation? Nick Zadrozny Edit, 2016 — Why not both? If you're interested in Postgres vs. Lucene, why not both? Check out the ZomboDB extension for Postgres, which

Search for multiple words, across multiple models

删除回忆录丶 提交于 2019-12-02 11:02:45
问题 I'm trying to create search functionality in a site, and I want the user to be able to search for multiple words, performing substring matching against criteria which exist in various models. For the sake of this example, let's say I have the following models: Employee Company Municipality County A county has multiple municipalities, which has multiple companies, which have multiple employees. I want the search to be able to search against a combination of Employee.firstname, Employee

Sphinx PHP API order differs from Search Daemon

南楼画角 提交于 2019-12-02 10:12:09
I've setup Sphinx and having an issue with the PHP API ordering returning - the search daemon returns the correct array response however the PHP API seems to returns in ID order. Does anyone have any idea why it is doing the following.. UPDATE: I've noticed the problem seems to occur with single word searches.. eg if I entered 'guide to dyspraxia' the result from the PHP API looks fine - any ideas why? // running via SSH using the 'search dyspraxia' (search daemon command) displaying matches: 1. document=5994, weight=2846, title=A guide to dyspraxia, table_id=3 2. document=3993, weight=1731,

MySQL 安装SphinxSE存储引擎

血红的双手。 提交于 2019-12-01 23:56:00
1. 基本介绍 SphinxSE是Sphinx提供的一种MYSQL的存储引擎。本质而言,SphinxSE并不像其他存储引擎,如InnoDB、MyISAM一样,SphinxSE自己并不存储任何数据。SphinxSE实际上可以理解为一个客户端,通过将用户的SQL查询语句,转换给Sphinx查询引擎。从用户的角度看,就好像数据是存储在SphinxSE引擎的表里面一样。 2. 情况说明 为MySQL安装SphinxSE存储引擎有两种情况: (1)尚未安装MySQL数据库 (2)已经安装MYSQL数据库 本文介绍的是针对第二种情况的安装方法。 3. 安装环境 Ubuntu 16.04 X86_64 4. 安装准备 首先,需要下载MySQL的源码包: ubuntu@ubuntu:~/Downloads$ wget http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.12.tar.gz 其次,需要下载Sphinx的源码包: ubuntu@ubuntu:~/Downloads$ wget http://sphinxsearch.com/files/sphinx-2.2.10-release.tar.gz 来源: oschina 链接: https://my.oschina.net/u/1588502/blog/675323

使用sphinx快速为你python注释生成API文档

爱⌒轻易说出口 提交于 2019-12-01 23:24:55
sphinx简介 sphinx是一种基于Python的文档工具,它可以令人轻松的撰写出清晰且优美的文档,由Georg Brandl在BSD许可证下开发。 新版的Python3文档就是由sphinx生成的,并且它已成为Python项目首选的文档工具,同时它对C/C++项目也有很好的支持。 更多详细特性请参考 spinx官方文档 来源: https://www.cnblogs.com/linkenpark/p/11720994.html

使用sphinx search打造你自己的中文搜索引擎

不问归期 提交于 2019-12-01 21:26:47
python学习笔记整理于猿人学网站的 python教程 和 python爬虫 Google 搜索引擎建立至今已经快20年了,之后全球各类大大小小类似的搜索引擎也陆续出现、消亡。国内目前以百度为大,搜狗、360、必应等也势在必争。搜索引擎技术也发展的相当成熟,同时也就出现了很多开源的搜索引擎系统。比如,Solr、Lucene、Elasticsearch、Sphinx等。 本文以sphinx search为例来介绍如何打造自己的搜索引擎。该搜索引擎的架构大致如下: Sphinx search Sphinx search 是俄罗斯人用C++写的,速度很快,可以非常容易的与SQL数据库和脚本语言集成,内置 MySQL 和PostgreSQL 数据库数据源的支持。其官方网站是: http://sphinxsearch.com/ 可以说Sphinx支持包括英文、中文等所有语言的搜索。英文是以空格、标点符号来分割单词的,很容易切分。而中文词汇之间是没有空格的,很难区分,所以才有了自然语言处理中的“中文分词”技术的研究。Sphinx默认把中文按字拆分的,但这样就会产生搜索出不相干的内容来。比如,搜索“中国”,它会把同时包含“中”和“国”但不包含“中国”的文档搜出来。因此,有人就给Sphinx打了中文分词的补丁。 如果没有搞错的话,最早添加中文分词的是Coreseek