mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove README files now migrated to SGML docs.
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
# $PostgreSQL: pgsql/contrib/dict_int/Makefile,v 1.1 2007/10/15 21:36:50 tgl Exp $
|
||||
# $PostgreSQL: pgsql/contrib/dict_int/Makefile,v 1.2 2007/12/02 21:15:38 tgl Exp $
|
||||
|
||||
MODULE_big = dict_int
|
||||
OBJS = dict_int.o
|
||||
DATA_built = dict_int.sql
|
||||
DATA = uninstall_dict_int.sql
|
||||
DOCS = README.dict_int
|
||||
REGRESS = dict_int
|
||||
|
||||
ifdef USE_PGXS
|
||||
|
@ -1,41 +0,0 @@
|
||||
Dictionary for integers
|
||||
=======================
|
||||
|
||||
The motivation for this example dictionary is to control the indexing of
|
||||
integers (signed and unsigned), and, consequently, to minimize the number of
|
||||
unique words which greatly affect the performance of searching.
|
||||
|
||||
* Configuration
|
||||
|
||||
The dictionary accepts two options:
|
||||
|
||||
- The MAXLEN parameter specifies the maximum length (number of digits)
|
||||
allowed in an integer word. The default value is 6.
|
||||
|
||||
- The REJECTLONG parameter specifies if an overlength integer should be
|
||||
truncated or ignored. If REJECTLONG=FALSE (default), the dictionary returns
|
||||
the first MAXLEN digits of the integer. If REJECTLONG=TRUE, the
|
||||
dictionary treats an overlength integer as a stop word, so that it will
|
||||
not be indexed.
|
||||
|
||||
* Usage
|
||||
|
||||
1. Compile and install
|
||||
|
||||
2. Load dictionary
|
||||
|
||||
psql mydb < dict_int.sql
|
||||
|
||||
3. Test it
|
||||
|
||||
mydb# select ts_lexize('intdict', '12345678');
|
||||
ts_lexize
|
||||
-----------
|
||||
{123456}
|
||||
|
||||
4. Change its options as you wish
|
||||
|
||||
mydb# ALTER TEXT SEARCH DICTIONARY intdict (MAXLEN = 4, REJECTLONG = true);
|
||||
ALTER TEXT SEARCH DICTIONARY
|
||||
|
||||
That's all.
|
Reference in New Issue
Block a user