资源简介
斯芬克斯全中文搜索引擎加自动分词mysql+swsc+php,全文索引
代码片段和文件信息
#
# $Id$
#
# Python version of Sphinx searchd client (Python API)
#
# Copyright (c) 2006 Mike Osadnik
# Copyright (c) 2006-2016 Andrew Aksyonoff
# Copyright (c) 2008-2016 Sphinx Technologies Inc
# All rights reserved
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License. You should
# have received a copy of the LGPL license along with this program; if you
# did not you can find it at http://www.gnu.org/
#
# WARNING!!!
#
# As of 2015 we strongly recommend to use either SphinxQL or REST APIs
# rather than the native SphinxAPI.
#
# While both the native SphinxAPI protocol and the existing APIs will
# continue to exist and perhaps should not even break (too much) exposing
# all the new features via multiple different native API implementations
# is too much of a support complication for us.
#
# That said you‘re welcome to overtake the maintenance of any given
# official API and remove this warning ;)
#
from __future__ import print_function
import sys
import select
import socket
import re
from struct import *
if sys.version_info > (3):
long = int
text_type = str
else:
text_type = unicode
# known searchd commands
SEARCHD_COMMAND_SEARCH = 0
SEARCHD_COMMAND_EXCERPT = 1
SEARCHD_COMMAND_UPDATE = 2
SEARCHD_COMMAND_KEYWORDS = 3
SEARCHD_COMMAND_PERSIST = 4
SEARCHD_COMMAND_STATUS = 5
SEARCHD_COMMAND_FLUSHATTRS = 7
# current client-side command implementation versions
VER_COMMAND_SEARCH = 0x120
VER_COMMAND_EXCERPT = 0x104
VER_COMMAND_UPDATE = 0x103
VER_COMMAND_KEYWORDS = 0x100
VER_COMMAND_STATUS = 0x101
VER_COMMAND_FLUSHATTRS = 0x100
# known searchd status codes
SEARCHD_OK = 0
SEARCHD_ERROR = 1
SEARCHD_RETRY = 2
SEARCHD_WARNING = 3
# known ranking modes (extended2 mode only)
SPH_RANK_PROXIMITY_BM15 = 0 # default mode phrase proximity major factor and BM15 minor one
SPH_RANK_BM15 = 1 # statistical mode BM15 ranking only (faster but worse quality)
SPH_RANK_NONE = 2 # no ranking all matches get a weight of 1
SPH_RANK_WORDCOUNT = 3 # simple word-count weighting rank is a weighted sum of per-field keyword occurence counts
SPH_RANK_PROXIMITY = 4
SPH_RANK_MATCHANY = 5
SPH_RANK_FIELDMASK = 6
SPH_RANK_SPH04 = 7
SPH_RANK_EXPR = 8
SPH_RANK_TOTAL = 9
# aliases; to be retired
SPH_RANK_PROXIMITY_BM25 = 0
SPH_RANK_BM25 = 1
# known sort modes
SPH_SORT_RELEVANCE = 0
SPH_SORT_ATTR_DESC = 1
SPH_SORT_ATTR_ASC = 2
SPH_SORT_TIME_SEGMENTS = 3
SPH_SORT_EXTENDED = 4
# known filter types
SPH_FILTER_VALUES = 0
SPH_FILTER_RANGE = 1
SPH_FILTER_FLOATRANGE = 2
SPH_FILTER_STRING = 3
SPH_FILTER_STRING_LIST = 6
# known attribute types
SPH_ATTR_NONE = 0
SPH_ATTR_INTEGER = 1
SPH_ATTR_TIMESTAMP = 2
SPH_ATTR_ORDINAL = 3
SPH_ATTR_BOOL = 4
SPH_ATTR_FLOAT = 5
SPH_ATTR_BIGINT = 6
SPH_ATTR_STRING = 7
SPH_ATTR_FACTORS = 1001
SPH_ATTR_MULTI = long(0X40000001)
SPH_ATTR_MULTI64 = long(0X40000002)
SPH_ATTR_TYPES = (SPH_ATTR_NONE
SPH_ATTR
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 14315393 2019-01-07 16:20 全文搜索引擎sphix+swsc+mysql\dict.utf8.xdb
文件 266 2019-04-11 16:49 全文搜索引擎sphix+swsc+mysql\index.php
文件 4717 2019-01-07 16:20 全文搜索引擎sphix+swsc+mysql\rules.utf8.ini
文件 545 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\Makefile
文件 52 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\MANIFEST.MF
文件 84 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\mk.cmd
文件 22 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\mkdoc.cmd
文件 725 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\README
文件 41176 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\SphinxClient.java
文件 370 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\SphinxException.java
文件 514 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\SphinxMatch.java
文件 1485 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\SphinxResult.java
文件 542 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\SphinxWordInfo.java
文件 5216 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\java\test.java
文件 7651 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\lgpl-3.0.txt
文件 1173 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\build.mk
文件 640 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\buildconf.sh
文件 42037 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\config.guess
文件 30221 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\config.sub
文件 652088 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\configure
文件 1716 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\configure.in
文件 25276 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\COPYING
文件 9206 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\install-sh
文件 3571 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\libsphinxclient.vcproj
文件 183730 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\ltmain.sh
文件 335 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\Makefile.am
文件 19806 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\Makefile.in
文件 10587 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\missing
文件 1454 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\README
文件 10273 2018-10-17 05:25 全文搜索引擎sphix+swsc+mysql\sphinx\api\libsphinxclient\smoke_ref.txt
............此处省略157个文件信息
- 上一篇:快捷网上订餐系统php
- 下一篇:Sorry.NET PHP在线生成王境泽表情
评论
共有 条评论