What can I do to prevent the failure of this query

Someone used our search engine to submit the search term "NT the Australia".

With the help of Barbara in several positions before this one, we have a thesaurus that transforms "NT" in "Northern Territory".

If the "analysis function" I wrote eventually transform the search of this query string:
select * from search_table where contains(keyfield,'(nt|northern territory) and (australia)')>0
But which causes this error:

-20000:ORA - 20000: Oracle Text error: DRG-10800: failed to query:

I assume that the problem is "NT", which is taken to mean 'short term', rather than the State abbreviation. The same type of problem that can occur when someone searches for BT, which means 'British Telecom', but I imagine that this will be interpreted to mean "generic term".

What is the usual way to stop these kinds of questions? I can write the code that replaces "NT" by "northern territory" before I even touched my dictionary of synonyms... but if I'm going to hardcode things like that, what else I'd be worried? And although I could replace 'BT' by 'british telecom', I imagine that anyone who wants to seek 'the confidence of bankers' could have a surprise if I.

Is it all consistent, sensible, ways to deal with this kind of issue that does not imply that users think reading the spirit?

"You say, I think, it was a stupid move and that there is no harm in putting each search term all about braces? "'({WOMAN}) and (HAT {})' would be just as acceptable, as fast as the '(femme et chapeau)? »

Fix.

Tags: Database

Similar Questions

Maybe you are looking for

  • where are the other address books I've had? Now, staff only

    The original PAB was unused, and I had a different address book Yahoo Griffith. I downloaded a lot of data to that. She and one other historical address book disappeared with the last update. I'm totally clogged upward with the lost addresses. Help t

  • Satellite Pro A100 carpet * dvd uj - 841 s write at very slow speed

    Hello. The carpet * a dvd multi drive uj - 841 s that came with my satellite pro a100 written on very slow DVD. Firmware 1.50I use good philips and kodak media (both rated 16 X). now, I know that the drive is only rated at 8 X max. But I can't even r

  • Operation of State activated a control?

    Is there a way (how) to change the enabled state of a control programmatically? I would like to 'Gray out' controls that are inactive the user under certain conditions and make available when they are active.  This requires to dynamically change the

  • is there anyway I can retrieve the factory.wim file?

    If not is there anyway, I can restore factory my dell inspiron 530 s?   I can't find the repair of your option to computer with the f8 advanced boot menu. and it worked before but now it's not, but when he was I couldn't find the reference dell datas

  • Barra home menu

    Vista o atualizei a barra do menu dinna quadrado, no xp modelo was e I can not mudar como CFFO para mudar uma put UO didn't interface no vista?