首页 > 其他分享 >openGauss 文本检索调试函数

openGauss 文本检索调试函数

时间:2022-11-11 17:32:39浏览次数:62  
标签:word 文本检索 text ts Hyphenated letters openGauss 调试 OUT

  • ts_debug([ config regconfig, ] document text, OUT alias text, OUT description text, OUT token text, OUT dictionaries regdictionary[], OUT dictionary regdictionary, OUT lexemes text[])
    描述:测试一个配置。
    返回类型:setof record
    示例:
openGauss=# SELECT ts_debug('english', 'The Brightest supernovaes');
ts_debug
-----------------------------------------------------------------------------------
(asciiword,"Word, all ASCII",The,{english_stem},english_stem,{})
(blank,"Space symbols"," ",{},,)
(asciiword,"Word, all ASCII",Brightest,{english_stem},english_stem,{brightest})
(blank,"Space symbols"," ",{},,)
(asciiword,"Word, all ASCII",supernovaes,{english_stem},english_stem,{supernova})
(5 rows)
  • ts_lexize(dict regdictionary, token text)
    描述:测试一个数据字典。
    返回类型:text[]
    示例:
openGauss=# SELECT ts_lexize('english_stem', 'stars');
ts_lexize
-----------
{star}
(1 row)
  • ts_parse(parser_name text, document text, OUT tokid integer, OUT token text)
    描述:测试一个解析。
    返回类型:setof record
    示例:
openGauss=# SELECT ts_parse('default', 'foo - bar');
ts_parse
-----------
(1,foo)
(12," ")
(12,"- ")
(1,bar)
(4 rows)
  • ts_parse(parser_oid oid, document text, OUT tokid integer, OUT token text)
    描述:测试一个解析。
    返回类型:setof record
    示例:
openGauss=# SELECT ts_parse(3722, 'foo - bar');
ts_parse
-----------
(1,foo)
(12," ")
(12,"- ")
(1,bar)
(4 rows)
  • ts_token_type(parser_name text, OUT tokid integer, OUT alias text, OUT description text)
    描述:获取分析器定义的记号类型。
    返回类型:setof record
    示例:
openGauss=# SELECT ts_token_type('default');
ts_token_type
--------------------------------------------------------------
(1,asciiword,"Word, all ASCII")
(2,word,"Word, all letters")
(3,numword,"Word, letters and digits")
(4,email,"Email address")
(5,url,URL)
(6,host,Host)
(7,sfloat,"Scientific notation")
(8,version,"Version number")
(9,hword_numpart,"Hyphenated word part, letters and digits")
(10,hword_part,"Hyphenated word part, all letters")
(11,hword_asciipart,"Hyphenated word part, all ASCII")
(12,blank,"Space symbols")
(13,tag,"XML tag")
(14,protocol,"Protocol head")
(15,numhword,"Hyphenated word, letters and digits")
(16,asciihword,"Hyphenated word, all ASCII")
(17,hword,"Hyphenated word, all letters")
(18,url_path,"URL path")
(19,file,"File or path name")
(20,float,"Decimal notation")
(21,int,"Signed integer")
(22,uint,"Unsigned integer")
(23,entity,"XML entity")
(23 rows)
  • ts_token_type(parser_oid oid, OUT tokid integer, OUT alias text, OUT description text)
    描述:获取分析器定义的记号类型。
    返回类型:setof record
    示例:
openGauss=# SELECT ts_token_type(3722);
ts_token_type
--------------------------------------------------------------
(1,asciiword,"Word, all ASCII")
(2,word,"Word, all letters")
(3,numword,"Word, letters and digits")
(4,email,"Email address")
(5,url,URL)
(6,host,Host)
(7,sfloat,"Scientific notation")
(8,version,"Version number")
(9,hword_numpart,"Hyphenated word part, letters and digits")
(10,hword_part,"Hyphenated word part, all letters")
(11,hword_asciipart,"Hyphenated word part, all ASCII")
(12,blank,"Space symbols")
(13,tag,"XML tag")
(14,protocol,"Protocol head")
(15,numhword,"Hyphenated word, letters and digits")
(16,asciihword,"Hyphenated word, all ASCII")
(17,hword,"Hyphenated word, all letters")
(18,url_path,"URL path")
(19,file,"File or path name")
(20,float,"Decimal notation")
(21,int,"Signed integer")
(22,uint,"Unsigned integer")
(23,entity,"XML entity")
(23 rows)
  • ts_stat(sqlquery text, [ weights text, ] OUT word text, OUT ndoc integer, OUT nentry integer)
    描述:获取tsvector列的统计数据。
    返回类型:setof record
    示例:
openGauss=# SELECT ts_stat('select ''hello world''::tsvector');
ts_stat
-------------
(world,1,1)
(hello,1,1)
(2 rows)

#openGauss #openGauss #openGauss

标签:word,文本检索,text,ts,Hyphenated,letters,openGauss,调试,OUT
From: https://blog.51cto.com/u_13824494/5845219

相关文章

  • openGauss 3.1.0版本正式发布 | 七个方面全面增强
    今日,openGauss3.1.0版本正式上线!openGauss3.1.0 版本是openGauss2022年发布的Preview版本,版本维护生命周期为0.5年。此次发布包含两个数据库服务端安装包:企业版和轻量版......
  • C#中调试和错误的处理
    正常模式下的调试1,在vs中使用Console.Write(或者WriteLine)方法向控制台输出变量的值,通过这种形式来观察变量的值是否符合预期。2,在Unity中可以使用Debug.Log(“”)......
  • 学习笔记-Frida反调试思路和hook native
    用户代码nativehookFrida反调试与反反调试基本思路(Java层API,Native层API,Syscall)六月题的Frida反调试的实现以及Native函数的Javahook以及主动调用静态注册函......
  • 一个简单实用的Android调试应用技巧
    在应用开发中,我们常常会进行日志打印或者debug调试,以此来分析运行时的一些信息,便于发现bug和问题。AndroidStudio的Debug功能很好用,但是有时候有些情况下,就显得不是那么快......
  • 神操作 之 远程调试 WebView 定位加载缓慢的坑。。。
    甜的时候,甜到让人不敢相信。苦的时候,苦到让你日夜无眠。前言事情的缘由,因为老韩某天贱嗖嗖的说,来,你搜下那个课程,现在免费,原价好几百,请你看。ummm,原谅我的年少无知太单纯,......
  • ✍77 pycharm远程调试问题
    引入配置SSH和SFTP自行百度一.以前的理解:pycharm配置远程服务器python解释器配置sftp映射远程服务器文件想当然的以为直接打开某一个.py文件调用远程解......
  • 【转】音频功放调试
    转自https://blog.csdn.net/u010783226/article/details/109095075一个手机的音乐效果的好坏,取决于喇叭(包括喇叭单体、音腔结构、出音孔、防尘网等),音频功放,音效算法调试(......
  • 无法打开调试器端口(127.0.0.1:xxxx): java.net.BindException "Address already
    开启项目突然报错1099端口冲突和debug端口冲突,修改端口号没有用依旧冲突,查看端口进程为空,重新配置tomcat、重启电脑和关闭HyperV无效果。删除C:\Users\用户名\AppData\Lo......
  • 在PetaLinux工程中调试关键模块代码
    在PetaLinux工程中,与单板相关的UBoot、Linux等模块,经常需要编辑、调试。在旧版本中,可以为UBoot、Linux选择“ext-local-src”,指定UBoot、Linux的代码,从而使PetaLinux使......
  • vscode远程调试
    在本地计算机上:在vscode的工作空间中,创建用于远程调试的配置文件launch.json,设置端口和主机以及目录映射。{"name":"Python:Attach","type":"python","re......