Help with tokenization of age-ranges in full text search - Mailing list pgsql-general
From | Mason Hale |
---|---|
Subject | Help with tokenization of age-ranges in full text search |
Date | |
Msg-id | CAAFdBmQzXMOUm2b_JgmhanRiJPOG7oTBvrfRYowWhQ2XqGTHFA@mail.gmail.com Whole thread Raw |
Responses |
Re: Help with tokenization of age-ranges in full text
search
|
List | pgsql-general |
development=# \dF+ public.user_search Text search configuration "public.user_search"
Parser: "pg_catalog.default"
Token | Dictionaries
-----------------+-----------------------
asciihword | simple_nostem_no_stop
asciiword | simple_nostem_no_stop
blank | simple
email | simple_nostem_no_stop
file | simple
float | simple
host | simple
hword | simple_nostem_no_stop
hword_asciipart | simple_nostem_no_stop
hword_numpart | simple_nostem_no_stop
hword_part | simple_nostem_no_stop
int | simple
numhword | simple_nostem_no_stop
numword | simple_nostem_no_stop
sfloat | simple
uint | simple
url | simple
url_path | simple
version | simple
word | simple_nostem_no_stop
development=# select alias, token from ts_debug('public.user_search', 'Boys 9-10');
alias | token
-----------+-------
asciiword | Boys
blank |
uint | 9
int | -10
(4 rows)
development=# select alias, token from ts_debug('public.user_search', 'Boys x9-y10');
alias | token
---------------+--------
asciiword | Boys
blank |
numhword | x9-y10
hword_numpart | x9
blank | -
hword_numpart | y10
(6 rows)
development=# \dF+ public.user_search
Text search configuration "public.user_search"
Parser: "pg_catalog.default"
Token | Dictionaries
-----------------+-----------------------
asciihword | simple_nostem_no_stop
asciiword | simple_nostem_no_stop
email | simple_nostem_no_stop
hword | simple_nostem_no_stop
hword_asciipart | simple_nostem_no_stop
hword_numpart | simple_nostem_no_stop
hword_part | simple_nostem_no_stop
numhword | simple_nostem_no_stop
numword | simple_nostem_no_stop
word | simple_nostem_no_stop
development=# select alias, token, lexemes from ts_debug('public.user_search', 'Boys 9-10');
alias | token | lexemes
-----------+-------+---------
asciiword | Boys | {boys}
blank | |
uint | 9 |
int | -10 |
(4 rows)
pgsql-general by date: