TER TEXT SEARCH CONFIGURATION russian
    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart
    WITH thesaurus_astro, english_stem;</PRE
><P>

    Now we can see how it works.
    <CODE
CLASS="FUNCTION"
>ts_lexize</CODE
> is not very useful for testing a thesaurus,
    because it treats its input as a single token.  Instead we can use
    <CODE
CLASS="FUNCTION"
>plainto_tsquery</CODE
> and <CODE
CLASS="FUNCTION"
>to_tsvector</CODE
>
    which will break their input strings into multiple tokens:

</P>