mirror of
https://github.com/discourse/discourse.git
synced 2025-01-25 06:10:46 +08:00
5c230266d3
``` discourse_development=# SELECT alias, lexemes FROM TS_DEBUG('www.discourse.org'); alias | lexemes -------+--------------------- host | {www.discourse.org} discourse_development=# SELECT TO_TSVECTOR('www.discourse.org'); to_tsvector ----------------------- 'www.discourse.org':1 ``` Given the above lexeme, we will inject additional lexeme by splitting the host on `.`. The actual tsvector stored will look something like ``` tsvector --------------------------------------- 'discourse':1 'discourse.org':1 'org':1 'www':1 'www.discourse.org':1 ``` |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |