When you use the MULTI_LEXER
to index a column containing documents in different languages, you can specify which language lexer to use during querying. You do so using the lang
parameter in the query template, which specifies the document-level lexer.
select id from docs where CONTAINS (text, '<query><textquery lang="french">bon soir</textquery></query>')>0;
Oracle Text Reference for information on LANGUAGE
and lang
with ALTER INDEX and document sublexer