Oracle text error [message #172636] |
Wed, 17 May 2006 07:59 |
Aju
Messages: 94 Registered: October 2004
|
Member |
|
|
I gets the result on the below query
select * from X
WHERE contains(clob_data, '(((($Edu&Pov) OR ($Edu&Pov))))') > 0
and rownum < 10;
But if I execute the query select * from x
WHERE contains(clob_data, '(((($Edu &) OR ($Edu &))))') > 0
and rownum < 10;, then it gives the oracle text error
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 17
Here is the detail of my oracle enviornment
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
PL/SQL Release 9.2.0.4.0 - Production
CORE 9.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production
Thanks in Advance.
|
|
|
|
Re: Oracle text error [message #172794 is a reply to message #172636] |
Thu, 18 May 2006 01:56 |
Aju
Messages: 94 Registered: October 2004
|
Member |
|
|
Thanks for the link. But perhaps this does not solve my purpose. I do not have any issue with the OR clause.
Even the query below gives the error. The error comes when there is any search where "&" is preceded or followed by none.
select * from X
WHERE contains(clob_data, '($Education &)') > 0
AND rownum < 10
select * from X
WHERE contains(clob_data, 'Education&') > 0
AND rownum < 10
select * from X
WHERE contains(clob_data, '&Education') > 0
AND rownum < 10
|
|
|
|
Re: Oracle text error [message #173036 is a reply to message #172636] |
Fri, 19 May 2006 01:43 |
Aju
Messages: 94 Registered: October 2004
|
Member |
|
|
Thank you Barabara.
My concern is to search anything that starts with "Education & "
If I search like
select * from X WHERE contains(Clob_Data, '($Education) {&} ') > 0 and rownum < 10
then it searches anything that has Education and "&" is neglected. Is it because "&" is in the stopword list. Any way to search atrribute like 'Education & %' ? May I be guided how to know the stop word list.
Also I tried as below to escape the &
select * from X WHERE contains(Clob_Data, 'Education & {&}') > 0 AND rownum < 10 but the result is the same
----------------------------------------------
Now I have a second doubt How can I search anything that starts with Education & Poverty.
When I search like "($Education) & {&} & ($Poverty) or with ($Education) & ($Poverty)", then it gets the data even the text content is "edcation is linked with poverty"
I know I am confusing more but I have tried my best to explain.
Thank you
Ajendra
|
|
|
|
|