Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
73e6bea6
Commit
73e6bea6
authored
Jun 29, 2016
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document precedence of FTS operators in tsquery
Oleg Bartunov
parent
8a395e0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
doc/src/sgml/textsearch.sgml
doc/src/sgml/textsearch.sgml
+7
-3
No files found.
doc/src/sgml/textsearch.sgml
View file @
73e6bea6
...
@@ -358,14 +358,18 @@ SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
...
@@ -358,14 +358,18 @@ SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
SELECT phraseto_tsquery('cats ate rats');
SELECT phraseto_tsquery('cats ate rats');
phraseto_tsquery
phraseto_tsquery
-------------------------------
-------------------------------
( 'cat' <-> 'ate' )
<-> 'rat'
'cat' <-> 'ate'
<-> 'rat'
SELECT phraseto_tsquery('the cats ate the rats');
SELECT phraseto_tsquery('the cats ate the rats');
phraseto_tsquery
phraseto_tsquery
-------------------------------
-------------------------------
( 'cat' <-> 'ate' )
<2> 'rat'
'cat' <-> 'ate'
<2> 'rat'
</programlisting>
</programlisting>
</para>
</para>
<para>
The precedence of tsquery operators is as follows: <literal>|</literal>, <literal>&</literal>,
<literal><-></literal>, <literal>!</literal>.
</para>
</sect2>
</sect2>
<sect2 id="textsearch-intro-configurations">
<sect2 id="textsearch-intro-configurations">
...
@@ -923,7 +927,7 @@ SELECT phraseto_tsquery('english', 'The Fat Rats');
...
@@ -923,7 +927,7 @@ SELECT phraseto_tsquery('english', 'The Fat Rats');
SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
SELECT phraseto_tsquery('english', 'The Fat & Rats:C');
phraseto_tsquery
phraseto_tsquery
-----------------------------
-----------------------------
( 'fat' <-> 'rat' )
<-> 'c'
'fat' <-> 'rat'
<-> 'c'
</screen>
</screen>
</para>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment