Solved

Verity searches and reserved words

Posted on 2008-10-17
2
301 Views
Last Modified: 2013-12-24
Has anyone got some solid logic on handling reserved words for verity searches?
Searching for Portland, OR will cause a cfcatch, whereas "Portland,'OR" will return the desired results.

From what I can tell, AND, OR, and NOT are reserved words.  But sometimes they're used as part of a literal string, and other times they're used as operators.  So, I dont think I want to just do some sort of global replace.

Anyone have any ideas here?
0
Comment
Question by:aseusainc
2 Comments
 
LVL 8

Accepted Solution

by:
eszaq earned 500 total points
ID: 22755326
To search for a literal AND, OR, or NOT, enclose the literal term in double quotation marks; for example:
love "and" marriage. I am afraid this is the only way. The problem is to determine if your user meant state of Oregon or actual boolean operator "OR". There is no easy answer without putting some limitations. You might have search form as a set of text-inputs with select drop-downs between them (options: AND, OR) and unless OR is coming from boolean select escape is with double-quotes.

Another option - put up on your  website extensive verity search help page. Downside - very few average users are savvy enough to "unleash the power of boolean expressions"

Sorry for bad news... Please don't kill the messenger :0)
0
 
LVL 7

Author Comment

by:aseusainc
ID: 23016967
Never did find any alternative.  eszaq is correct, it's just the way it is...
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
file too large for website 6 70
Website being blocked? 3 126
DNS, website, godaddy 6 84
Stream live video from Raspberry Pi camera 22 153
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question