By defaultIn OracleText, the full-text index is case insensitive by default. The case-sensitivity of the index can be specified at creation time or changed later using lexer preferences.
UI Text Box |
---|
|
By default, Blueriq uses the CTX_SYS.DEFAULT_LEXER which comes pre-configured with various settings depending on the language used when the database was installed. For example, if the Oracle database was installed with the Dutch language, the default lexer has composite indexing and alternate spelling enabled for the Dutch language. If a custom lexer is defined, make sure not to omit any settings from the default lexer that you would like to keep. |
Creating a case-insensitive lexer
To enable case-sensitivity, a custom lexer must be defined and configured:
Code Block |
---|
|
begin
ctx_ddl.create_preference('example_lexer', 'BASIC_LEXER');
ctx_ddl.set_attribute('example_lexer', 'mixed_case', 'no'); -- no = case sensitive, yes = case insensitive
end; |
...
- the 'alter index rebuild parameters' may not be used to change the lexer, instead changing the lexer and rebuilding the index must be done using two separate statements
- simply changing the value of an attribute on a lexer preference has no effect on the full-text index, the 'alter index parameters' statement must be used
- after the lexer is changed, the effects will not become visible until the index is rebuilt
...
UI Expand |
---|
|
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | BKB |
---|
sort | modified |
---|
showSpace | false |
---|
reverse | true |
---|
type | page |
---|
labels | search bq97 |
---|
|
|
...