Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f1e3c76

Browse files
committed
Fix tsearch docs
Remove mention of setweight(tsquery) which wasn't included in 9.6. Also replace old forgotten phrase operator to new one. Dmitry Ivanov
1 parent 08af921 commit f1e3c76

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

doc/src/sgml/textsearch.sgml

+1-29
Original file line numberDiff line numberDiff line change
@@ -1519,34 +1519,6 @@ SELECT tsquery_phrase(to_tsquery('fat'), to_tsquery('cat'), 10);
15191519

15201520
</varlistentry>
15211521

1522-
<varlistentry>
1523-
1524-
<term>
1525-
<indexterm>
1526-
<primary>setweight</primary>
1527-
</indexterm>
1528-
1529-
<literal>setweight(<replaceable class="PARAMETER">query</replaceable> <type>tsquery</>, <replaceable class="PARAMETER">weight</replaceable> <type>"char"</>) returns <type>tsquery</></literal>
1530-
</term>
1531-
1532-
<listitem>
1533-
<para>
1534-
<function>setweight</> returns a copy of the input query in which every
1535-
position has been labeled with the given <replaceable>weight</>(s), either
1536-
<literal>A</literal>, <literal>B</literal>, <literal>C</literal>,
1537-
<literal>D</literal> or their combination. These labels are retained when
1538-
queries are concatenated, allowing words from different parts of a document
1539-
to be weighted differently by ranking functions.
1540-
</para>
1541-
1542-
<para>
1543-
Note that weight labels apply to <emphasis>positions</>, not
1544-
<emphasis>lexemes</>. If the input query has been stripped of
1545-
positions then <function>setweight</> does nothing.
1546-
</para>
1547-
</listitem>
1548-
</varlistentry>
1549-
15501522
<varlistentry>
15511523

15521524
<term>
@@ -2588,7 +2560,7 @@ more sample word(s) : more indexed word(s)
25882560

25892561
<para>
25902562
Specific stop words recognized by the subdictionary cannot be
2591-
specified; instead use <literal>&lt;-&gt;</> to mark the location where any
2563+
specified; instead use <literal>?</> to mark the location where any
25922564
stop word can appear. For example, assuming that <literal>a</> and
25932565
<literal>the</> are stop words according to the subdictionary:
25942566

0 commit comments

Comments
 (0)