Commit 0e3ddc8d authored by Alvaro Herrera's avatar Alvaro Herrera

Use more real-world examples in the text search parser documentation.

parent f8c9ef90
<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.25 2007/10/24 02:24:47 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.26 2007/10/25 13:06:35 alvherre Exp $ -->
<chapter id="textsearch"> <chapter id="textsearch">
<title id="textsearch-title">Full Text Search</title> <title id="textsearch-title">Full Text Search</title>
...@@ -1750,12 +1750,12 @@ LIMIT 10; ...@@ -1750,12 +1750,12 @@ LIMIT 10;
<row> <row>
<entry><literal>asciiword</></entry> <entry><literal>asciiword</></entry>
<entry>Word, all ASCII letters</entry> <entry>Word, all ASCII letters</entry>
<entry><literal>foo</literal></entry> <entry><literal>elephant</literal></entry>
</row> </row>
<row> <row>
<entry><literal>word</></entry> <entry><literal>word</></entry>
<entry>Word, all letters</entry> <entry>Word, all letters</entry>
<entry><literal>f&oslash;&oslash;</literal></entry> <entry><literal>ma&ntilde;ana</literal></entry>
</row> </row>
<row> <row>
<entry><literal>numword</></entry> <entry><literal>numword</></entry>
...@@ -1765,40 +1765,40 @@ LIMIT 10; ...@@ -1765,40 +1765,40 @@ LIMIT 10;
<row> <row>
<entry><literal>asciihword</></entry> <entry><literal>asciihword</></entry>
<entry>Hyphenated word, all ASCII</entry> <entry>Hyphenated word, all ASCII</entry>
<entry><literal>foo-bar</literal></entry> <entry><literal>up-to-date</literal></entry>
</row> </row>
<row> <row>
<entry><literal>hword</></entry> <entry><literal>hword</></entry>
<entry>Hyphenated word, all letters</entry> <entry>Hyphenated word, all letters</entry>
<entry><literal>f&oslash;&oslash;-bar</literal></entry> <entry><literal>pol&iacute;tico-militar</literal></entry>
</row> </row>
<row> <row>
<entry><literal>numhword</></entry> <entry><literal>numhword</></entry>
<entry>Hyphenated word, letters and digits</entry> <entry>Hyphenated word, letters and digits</entry>
<entry><literal>foo-beta1</literal></entry> <entry><literal>postgresql-beta1</literal></entry>
</row> </row>
<row> <row>
<entry><literal>hword_asciipart</></entry> <entry><literal>hword_asciipart</></entry>
<entry>Hyphenated word part, all ASCII</entry> <entry>Hyphenated word part, all ASCII</entry>
<entry><literal>foo</literal> or <literal>bar</literal> in the context <entry><literal>militar</literal> in the context
<literal>foo-bar</literal></entry> <literal>pol&iacute;tico-militar</literal>, or <literal>postgresql</literal> in the context <literal>postgresql-beta1</literal></entry>
</row> </row>
<row> <row>
<entry><literal>hword_part</></entry> <entry><literal>hword_part</></entry>
<entry>Hyphenated word part, all letters</entry> <entry>Hyphenated word part, all letters</entry>
<entry><literal>f&oslash;&oslash;</literal> in the context <entry><literal>f&iacute;sico</literal> or <literal>qu&iacute;mico</literal>
<literal>f&oslash;&oslash;-bar</literal></entry> in the context <literal>f&iacute;sico-qu&iacute;mico</literal></entry>
</row> </row>
<row> <row>
<entry><literal>hword_numpart</></entry> <entry><literal>hword_numpart</></entry>
<entry>Hyphenated word part, letters and digits</entry> <entry>Hyphenated word part, letters and digits</entry>
<entry><literal>beta1</literal> in the context <entry><literal>beta1</literal> in the context
<literal>foo-beta1</literal></entry> <literal>postgresql-beta1</literal></entry>
</row> </row>
<row> <row>
<entry><literal>email</></entry> <entry><literal>email</></entry>
<entry>Email address</entry> <entry>Email address</entry>
<entry><literal>foo@bar.com</literal></entry> <entry><literal>foo@example.com</literal></entry>
</row> </row>
<row> <row>
<entry><literal>protocol</></entry> <entry><literal>protocol</></entry>
...@@ -1808,12 +1808,12 @@ LIMIT 10; ...@@ -1808,12 +1808,12 @@ LIMIT 10;
<row> <row>
<entry><literal>url</></entry> <entry><literal>url</></entry>
<entry>URL</entry> <entry>URL</entry>
<entry><literal>foo.com/stuff/index.html</literal></entry> <entry><literal>example.com/stuff/index.html</literal></entry>
</row> </row>
<row> <row>
<entry><literal>host</></entry> <entry><literal>host</></entry>
<entry>Host</entry> <entry>Host</entry>
<entry><literal>foo.com</literal></entry> <entry><literal>example.com</literal></entry>
</row> </row>
<row> <row>
<entry><literal>uri</></entry> <entry><literal>uri</></entry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment