Oracle Text (MOSC)

MOSC Banner

Fix Error in CONTAINS for Oracle Text Search, DRG-51030: wildcard query expansion resulted in too ma

edited Feb 17, 2020 4:00AM in Oracle Text (MOSC) 2 commentsAnswered

Hi

we have a SQL query being done by a customer of ours that is causing the above error:

where CONTAINS(COLUMN,'PROJECT AND LEVEL AND 5%',1)  > 0

The problem we know comes from the fact that 5 combinations is being tokened 120000 times.

Now i understand if they did just 5% as a Text Search they should expect this error but using LIKE instead we have found 90 rows returned from the index table

is the any way of telling the contains to combine all these in one token lookup to avoid the error?

problem i fear is changing the wildcard_maxterms to 0 meaning unlimited for token lookup but then when you read this  warning as well it makes you nervous:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center