Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb40c0a4

Browse files
committed
Clean up some stray references to tsearch2.
1 parent07c2373 commitb40c0a4

File tree

5 files changed

+41
-38
lines changed

5 files changed

+41
-38
lines changed

‎doc/src/sgml/gin.sgml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/gin.sgml,v 2.11 2007/02/16 03:50:29 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/gin.sgml,v 2.12 2007/11/13 23:36:26 tgl Exp $ -->
22

33
<chapter id="GIN">
44
<title>GIN Indexes</title>
@@ -232,13 +232,20 @@
232232

233233
<para>
234234
The <productname>PostgreSQL</productname> source distribution includes
235-
<acronym>GIN</acronym> classes forone-dimensional arrays of all internal
236-
types. The following
235+
<acronym>GIN</acronym>operatorclasses for<type>tsvector</> and
236+
for one-dimensional arrays of all internaltypes. The following
237237
<filename>contrib</> modules also contain <acronym>GIN</acronym>
238238
operator classes:
239239
</para>
240240

241241
<variablelist>
242+
<varlistentry>
243+
<term>hstore</term>
244+
<listitem>
245+
<para>Module for storing (key, value) pairs</para>
246+
</listitem>
247+
</varlistentry>
248+
242249
<varlistentry>
243250
<term>intarray</term>
244251
<listitem>
@@ -247,11 +254,9 @@
247254
</varlistentry>
248255

249256
<varlistentry>
250-
<term>tsearch2</term>
257+
<term>pg_trgm</term>
251258
<listitem>
252-
<para>Support for inverted text indexing. This is much faster for very
253-
large, mostly-static sets of documents.
254-
</para>
259+
<para>Text similarity using trigram matching</para>
255260
</listitem>
256261
</varlistentry>
257262
</variablelist>

‎doc/src/sgml/gist.sgml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/gist.sgml,v 1.28 2007/01/31 20:56:17 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/gist.sgml,v 1.29 2007/11/13 23:36:26 tgl Exp $ -->
22

33
<chapter id="GiST">
44
<title>GiST Indexes</title>
@@ -181,8 +181,9 @@
181181
<para>
182182
The <productname>PostgreSQL</productname> source distribution includes
183183
several examples of index methods implemented using
184-
<acronym>GiST</acronym>. The core system currently provides R-Tree
185-
equivalent functionality for some of the built-in geometric data types
184+
<acronym>GiST</acronym>. The core system currently provides text search
185+
support (indexing for <type>tsvector</> and <type>tsquery</>) as well as
186+
R-Tree equivalent functionality for some of the built-in geometric data types
186187
(see <filename>src/backend/access/gist/gistproc.c</>). The following
187188
<filename>contrib</> modules also contain <acronym>GiST</acronym>
188189
operator classes:
@@ -203,6 +204,13 @@
203204
</listitem>
204205
</varlistentry>
205206

207+
<varlistentry>
208+
<term>hstore</term>
209+
<listitem>
210+
<para>Module for storing (key, value) pairs</para>
211+
</listitem>
212+
</varlistentry>
213+
206214
<varlistentry>
207215
<term>intarray</term>
208216
<listitem>
@@ -230,13 +238,6 @@
230238
<para>Indexing for <quote>float ranges</quote></para>
231239
</listitem>
232240
</varlistentry>
233-
234-
<varlistentry>
235-
<term>tsearch2</term>
236-
<listitem>
237-
<para>Full text indexing</para>
238-
</listitem>
239-
</varlistentry>
240241
</variablelist>
241242

242243
</sect1>

‎doc/src/sgml/indices.sgml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.71 2007/04/06 22:33:41 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.72 2007/11/13 23:36:26 tgl Exp $ -->
22

33
<chapter id="indexes">
44
<title id="indexes-title">Indexes</title>
@@ -235,8 +235,6 @@ CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable>
235235

236236
(See <xref linkend="functions-geometry"> for the meaning of
237237
these operators.)
238-
Also, an <literal>IS NULL</> condition on
239-
an index column can be used with a GiST index.
240238
Many other GiST operator
241239
classes are available in the <literal>contrib</> collection or as separate
242240
projects. For more information see <xref linkend="GiST">.
@@ -269,10 +267,9 @@ CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable>
269267

270268
(See <xref linkend="functions-array"> for the meaning of
271269
these operators.)
272-
GIN indexes cannot use <literal>IS NULL</> as a search condition.
273-
Other GIN operator classes are available in the <literal>contrib</>
274-
<literal>tsearch2</literal> and <literal>intarray</literal> modules.
275-
For more information see <xref linkend="GIN">.
270+
Many other GIN operator
271+
classes are available in the <literal>contrib</> collection or as separate
272+
projects. For more information see <xref linkend="GIN">.
276273
</para>
277274
</sect1>
278275

‎doc/src/sgml/trgm.sgml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,24 @@ ORDER BY
131131
</sect2>
132132

133133
<sect2>
134-
<title>Tsearch2 Integration</title>
134+
<title>Text Search Integration</title>
135135
<para>
136136
Trigram matching is a very useful tool when used in conjunction
137-
with a text index created by the Tsearch2 contrib module. (See
138-
contrib/tsearch2)
137+
with a full text index.
139138
</para>
140139
<para>
141140
The first step is to generate an auxiliary table containing all
142-
the unique words in theTsearch2 index:
141+
the unique words in thedocuments:
143142
</para>
144143
<programlisting>
145144
CREATE TABLE words AS SELECT word FROM
146145
stat('SELECT to_tsvector(''simple'', bodytext) FROM documents');
147146
</programlisting>
148147
<para>
149-
Where 'documents' is a table that has a text field 'bodytext'
150-
that TSearch2 is used to search. The use of the 'simple' dictionary
151-
with the to_tsvector function, instead of just using the already
148+
where <structname>documents</> is a table that has a text field
149+
<structfield>bodytext</> that we wish to search. The use of the
150+
<literal>simple</> configuration with the <function>to_tsvector</>
151+
function, instead of just using the already
152152
existing vector is to avoid creating a list of already stemmed
153153
words. This way, only the original, unstemmed words are added
154154
to the word list.
@@ -174,24 +174,24 @@ CREATE INDEX words_idx ON words USING gin(word gist_trgm_ops);
174174
<para>
175175
<note>
176176
<para>
177-
Since the'words' table has been generated as a separate,
177+
Since the<structname>words</> table has been generated as a separate,
178178
static table, it will need to be periodically regenerated so that
179-
it remains up to date with theword list in the Tsearch2 index.
179+
it remains up to date with thedocument collection.
180180
</para>
181181
</note>
182182
</para>
183183
</sect2>
184184

185185
<sect2>
186186
<title>References</title>
187-
<para>
188-
Tsearch2 Development Site
189-
<ulink url="http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/"></ulink>
190-
</para>
191187
<para>
192188
GiST Development Site
193189
<ulink url="http://www.sai.msu.su/~megera/postgres/gist/"></ulink>
194190
</para>
191+
<para>
192+
Tsearch2 Development Site
193+
<ulink url="http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/"></ulink>
194+
</para>
195195
</sect2>
196196

197197
<sect2>

‎src/backend/access/gin/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Features
4848
* User-defined opclasses. (The scheme is similar to GiST.)
4949
* Optimized index creation (Makes use of maintenance_work_mem to accumulate
5050
postings in memory.)
51-
*Tsearch2 support via an opclass
51+
*Text search support via an opclass
5252
* Soft upper limit on the returned results set using a GUC variable:
5353
gin_fuzzy_search_limit
5454

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp