Skip to content

Commit 02bca3c

Browse files
committed
校验 datatype.sgml 校验完成
1 parent e1f88cd commit 02bca3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

postgresql/doc/src/sgml/datatype.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8211,7 +8211,7 @@ SELECT 'a:1 fat:2 cat:3 sat:4 on:5 a:6 mat:7 and:8 ate:9 a:10 fat:11 rat:12'::ts
82118211
</para>
82128212
________________________________________________________-->
82138213
<para>
8214-
一个<type>tsvector</type>值是一个排序的不同<firstterm>词元</firstterm>的列表,这些词元是已经<firstterm>标准化</firstterm>的单词,用于合并同一个单词的不同变体(详见<xref linkend="textsearch"/>)。在输入时会自动进行排序和去重,如下所示:
8214+
一个<type>tsvector</type>值是一个排序的不同<firstterm>词元(lexemes)</firstterm>的列表,这些词元是已经<firstterm>标准化(normalized)</firstterm>的单词,用于合并同一个单词的不同变体(详见<xref linkend="textsearch"/>)。在输入时会自动进行排序和去重,如下所示:
82158215

82168216
<programlisting>
82178217
SELECT 'a fat cat sat on a mat and ate a fat rat'::tsvector;
@@ -8238,7 +8238,7 @@ SELECT $$the lexeme 'Joe''s' contains a quote$$::tsvector;
82388238
'Joe''s' 'a' 'contains' 'lexeme' 'quote' 'the'
82398239
</programlisting>
82408240

8241-
可选地,可以将整数<firstterm>位置</firstterm>附加到词元上:
8241+
可选地,可以将整数<firstterm>位置(positions)</firstterm>附加到词元上:
82428242

82438243
<programlisting>
82448244
SELECT 'a:1 fat:2 cat:3 sat:4 on:5 a:6 mat:7 and:8 ate:9 a:10 fat:11 rat:12'::tsvector;
@@ -8247,7 +8247,7 @@ SELECT 'a:1 fat:2 cat:3 sat:4 on:5 a:6 mat:7 and:8 ate:9 a:10 fat:11 rat:12'::ts
82478247
'a':1,6,10 'and':8 'ate':9 'cat':3 'fat':2,11 'mat':7 'on':5 'rat':12 'sat':4
82488248
</programlisting>
82498249

8250-
位置通常表示文档中源单词的位置。位置信息可用于<firstterm>接近排名</firstterm>。位置值可以从1到16383范围;较大的数字会被自动设置为16383。相同词元的重复位置会被丢弃。
8250+
位置通常表示文档中源单词的位置。位置信息可用于<firstterm>接近排名(proximity ranking)</firstterm>。位置值可以从1到16383范围;较大的数字会被自动设置为16383。相同词元的重复位置会被丢弃。
82518251
</para>
82528252
<!-- pgdoc-cn_end sig_en=cb65f847e1c0af4a28bf24bf840ce4a7 -->
82538253

@@ -8272,7 +8272,7 @@ SELECT 'a:1A fat:2B,4C cat:5D'::tsvector;
82728272
</para>
82738273
________________________________________________________-->
82748274
<para>
8275-
具有位置的词元可以进一步用<firstterm>权重</firstterm>标记,可以是<literal>A</literal>,
8275+
具有位置的词元可以进一步用<firstterm>权重(weight)</firstterm>标记,可以是<literal>A</literal>,
82768276
<literal>B</literal>,<literal>C</literal>或<literal>D</literal>。
82778277
<literal>D</literal>是默认值,因此不会显示在输出中:
82788278

0 commit comments

Comments
 (0)