Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Escaped boolean queries with wildcards

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


aubreyholland at gmail

Sep 4, 2008, 9:38 AM

Post #1 of 1 (240 views)
Permalink
Escaped boolean queries with wildcards

In order to support autocomplete in a location search, I'm taking the query
string and adding a wildcard to the end. This works fine in general, but I'm
having trouble with searches like "Portland, OR". In this case, the OR is
treated as a boolean operator, and the search fails. Downcasing the query
fixed this problem, but it still fails to return any results if I add my
wildcard to the end of the search. The resulting search is:

'portland, or*'

'portland, or' and 'new york, ny*' work correctly, so I assume the problem
is still with the presence of the OR. Any ideas what I can do to make this
search return the expected result?

AH
--
View this message in context: http://www.nabble.com/Escaped-boolean-queries-with-wildcards-tp19314671p19314671.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.