forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdbaec70
committed
Rename and slightly redefine the default text search parser's "word"
categories, as per discussion. asciiword (formerly lword) is stillASCII-letters-only, and numword (formerly word) is still the most generalmixed-alpha-and-digits case. But word (formerly nlword) is nowany-group-of-letters-with-at-least-one-non-ASCII, rather than all-non-ASCII asbefore. This is no worse than before for parsing mixed Russian/English text,which seems to have been the design center for the original coding; and itshould simplify matters for parsing most European languages. In particularit will not be necessary for any language to accept strings containing digitsas being regular "words". The hyphenated-word categories are adjustedsimilarly.1 parent344d0ca commitdbaec70
File tree
10 files changed
+466
-449
lines changed- doc/src/sgml
- src
- backend
- snowball
- tsearch
- include/catalog
- test/regress
- expected
- sql
- tools/msvc
10 files changed
+466
-449
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7861 | 7861 | | |
7862 | 7862 | | |
7863 | 7863 | | |
7864 | | - | |
| 7864 | + | |
7865 | 7865 | | |
7866 | 7866 | | |
7867 | 7867 | | |
| |||
7889 | 7889 | | |
7890 | 7890 | | |
7891 | 7891 | | |
7892 | | - | |
| 7892 | + | |
7893 | 7893 | | |
7894 | 7894 | | |
7895 | 7895 | | |
7896 | 7896 | | |
7897 | 7897 | | |
7898 | 7898 | | |
7899 | | - | |
| 7899 | + | |
7900 | 7900 | | |
7901 | 7901 | | |
7902 | 7902 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
99 | | - | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
0 commit comments
Comments
(0)