• Data Warehouse Service

  1. Help Center
  2. Data Warehouse Service
  3. Developer Guide
  4. Full Text Search
  5. Testing and Debugging Text Search
  6. Testing a Dictionary

Testing a Dictionary

The ts_lexize function facilitates dictionary testing.

ts_lexize(dict regdictionary, token text) returns text[] ts_lexize returns an array of lexemes if the input token is known to the dictionary, or an empty array if the token is known to the dictionary but it is a stop word, or NULL if it is an unknown word.

For example:

SELECT ts_lexize('english_stem', 'stars');

SELECT ts_lexize('english_stem', 'a');

The ts_lexize function expects a single token, not text.