@@ -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
8211
8211
</para>
8212
8212
________________________________________________________-->
8213
8213
<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"/>)。在输入时会自动进行排序和去重,如下所示:
8215
8215
8216
8216
<programlisting>
8217
8217
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;
8238
8238
'Joe''s' 'a' 'contains' 'lexeme' 'quote' 'the'
8239
8239
</programlisting>
8240
8240
8241
- 可选地,可以将整数<firstterm>位置</firstterm>附加到词元上:
8241
+ 可选地,可以将整数<firstterm>位置(positions) </firstterm>附加到词元上:
8242
8242
8243
8243
<programlisting>
8244
8244
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
8247
8247
'a':1,6,10 'and':8 'ate':9 'cat':3 'fat':2,11 'mat':7 'on':5 'rat':12 'sat':4
8248
8248
</programlisting>
8249
8249
8250
- 位置通常表示文档中源单词的位置。位置信息可用于<firstterm>接近排名</firstterm>。位置值可以从1到16383范围;较大的数字会被自动设置为16383。相同词元的重复位置会被丢弃。
8250
+ 位置通常表示文档中源单词的位置。位置信息可用于<firstterm>接近排名(proximity ranking) </firstterm>。位置值可以从1到16383范围;较大的数字会被自动设置为16383。相同词元的重复位置会被丢弃。
8251
8251
</para>
8252
8252
<!-- pgdoc-cn_end sig_en=cb65f847e1c0af4a28bf24bf840ce4a7 -->
8253
8253
@@ -8272,7 +8272,7 @@ SELECT 'a:1A fat:2B,4C cat:5D'::tsvector;
8272
8272
</para>
8273
8273
________________________________________________________-->
8274
8274
<para>
8275
- 具有位置的词元可以进一步用<firstterm>权重</firstterm>标记,可以是<literal>A</literal>,
8275
+ 具有位置的词元可以进一步用<firstterm>权重(weight) </firstterm>标记,可以是<literal>A</literal>,
8276
8276
<literal>B</literal>,<literal>C</literal>或<literal>D</literal>。
8277
8277
<literal>D</literal>是默认值,因此不会显示在输出中:
8278
8278
0 commit comments