Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 如何在没有字典(没有词干)的情况下使用to_tsvector?_Postgresql - Fatal编程技术网

Postgresql 如何在没有字典(没有词干)的情况下使用to_tsvector?

Postgresql 如何在没有字典(没有词干)的情况下使用to_tsvector?,postgresql,Postgresql,我正在使用,效果很好。。。但一个新的需求是,为了保留准确的原始单词(原始文本),需要像字典一样“绕开” 。。。类似于使用to_tsvector('raw',myString)其中myString类似于“AATT GAA”,对任何字典都没有意义。选择to_tsvector('simple','your string')to_tsvector('simple',myString)谢谢@DanielVérité和Dmitry。你知道如何排除某种语言中的停止词吗?无词干,但基于语言的停止词

我正在使用,效果很好。。。但一个新的需求是,为了保留准确的原始单词(原始文本),需要像字典一样“绕开”


。。。类似于使用
to_tsvector('raw',myString)
其中
myString
类似于“AATT GAA”,对任何字典都没有意义。

选择to_tsvector('simple','your string')

to_tsvector('simple',myString)
谢谢@DanielVérité和Dmitry。你知道如何排除某种语言中的停止词吗?无词干,但基于语言的停止词