On my database there is a product title. We need to be able to search this so that it isn't accent sensitive, ie searching 'Dorthey' will still return 'Dórthéy'.
We are already creating an Oracle Text index. The setting for converting accented characters to base letters is called base_letter, and needs to be turned on.
This is how the index is created.
create index ITITLE_PSIPRODUCTTITLE on PSI.PSIPRODUCTTITLE(PT_TITLE) INDEXTYPE IS ctxsys.context
Do I turn on this setting when creating the index, and how? Or is the base_letter setting turned on elsewhere?
Appreciate any help!
You have to define a
BASIC_LEXER
where you set theBASE_LETTER
totrue
.You use the
BASIC_LEXER
in the creation of the text index as demonstrated in the examplePlease check the other parameters such as
ALTERNATE_SPELLING
and/orOVERRIDE_BASE_LETTER
as illustrated in this blog postAlternatively consult the Oracle documentation