View Single Post
  #21  
Old 01-26-2007, 06:31 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,015
Quote:
Originally posted by dasymington
I hope this will be a feature that's easy to switch on and off. I don't always want phrase searching; often when I enter two words I want to find documents that contain them both anywhere not just as a phrase.

Couldn't you implement this for the search dialogue:

1. If you enter a series of words separated by spaces, find documents that contain ALL the words - as at present.

2. If you enter a phrase enclosed in double quotes, find documents that contain that PHRASE.

3. If you enter several phrases (each enclosed in double quotes) or combinations of phrases and words separated by spaces, find documents that contain ALL these terms.

4. If you enter words separated by OR (or phrases and words separated by OR), find documents that contain one or more of any of the words or phrases.

5. If possible allow AND and OR statements (which could be single words or phrases) to be prioritised with the use of parenthesis. I don't know how difficult that is, but given that you can prioritise in this way with UR's indenting method, it might be relatively easy to translate such search queries into UR's indented method and then run that; however, I know, I'm not the progammer!
That is almost exactly how it will work. The current behavior of matching all words entered (anywhere in the document or attributes) will remain. Double quotes will mark a phrase to be searched for after filtering on all words in the phrase. And we're looking into the possibility of supporting OR in a quick search.
Reply With Quote