Re: ParseException

2009-08-31 Thread Adriano Crestani
w it should ? > > > Adriano Crestani-2 wrote: > > > > Hi, > > > > You can escape the query parser keywords: Holland \OR Germany > > > > This way the query parser will interpret it as as term instead of a > > boolean > > operator. > > &

Re: ParseException

2009-08-31 Thread utuncdemir
> Adriano Crestani > > On Fri, Aug 28, 2009 at 3:51 AM, utuncdemir wrote: > >> >> Hello >> >> When search term has word 'OR', Lucene throws an ParseException but here >> the >> term 'OR' is not searched for to be interpreted by co

Re: ParseException

2009-08-28 Thread Adriano Crestani
x27;, Lucene throws an ParseException but here > the > term 'OR' is not searched for to be interpreted by condition in query > intentionally.The needs is simple to get the lucene document which has text > for example ' Holland OR Germany '.in other words when i search

ParseException

2009-08-28 Thread utuncdemir
Hello When search term has word 'OR', Lucene throws an ParseException but here the term 'OR' is not searched for to be interpreted by condition in query intentionally.The needs is simple to get the lucene document which has text for example ' Holland OR Germany '.in

[jira] Commented: (LUCENE-1751) when i search with "a" or "this is" or "that at" it is giving the parseException

2009-07-17 Thread Simon Willnauer (JIRA)
java-user with a detailed description of the query you pass to QueryParser. > when i search with "a" or "this is" or "that at" it is giving the > parseException > > >

[jira] Closed: (LUCENE-1751) when i search with "a" or "this is" or "that at" it is giving the parseException

2009-07-17 Thread Simon Willnauer (JIRA)
ot;that at" it is giving the > parseException > > > Key: LUCENE-1751 > URL: https://issues.apache.org/jira/browse/LUCENE-1751 > Project: Lucene - Java >

[jira] Created: (LUCENE-1751) when i search with "a" or "this is" or "that at" it is giving the parseException

2009-07-17 Thread SML (JIRA)
when i search with "a" or "this is" or "that at" it is giving the parseException Key: LUCENE-1751 URL: https://issues.apache.org/jira/browse/LUCENE-175

[jira] Resolved: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-18 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-573?page=all ] Yonik Seeley resolved LUCENE-573. - Resolution: Fixed Looks good, and I just committed this. Thanks Michael! > Escaped quotes inside a phrase cause a ParseExcept

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-17 Thread Yonik Seeley (JIRA)
anges. So unless concerns arise, I'll commit this after review. > Escaped quotes inside a phrase cause a ParseException > - > > Key: LUCENE-573 > URL: http://issues.apache.org/jira/browse/LUCENE-

[jira] Updated: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-17 Thread Michael Busch (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-573?page=all ] Michael Busch updated LUCENE-573: - Lucene Fields: [Patch Available] > Escaped quotes inside a phrase cause a ParseExcept

[jira] Updated: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-17 Thread Michael Busch (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-573?page=all ] Michael Busch updated LUCENE-573: - Attachment: (was: escaped_quotes_inside_phrases.patch) > Escaped quotes inside a phrase cause a ParseExcept

[jira] Updated: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-17 Thread Michael Busch (JIRA)
changes All unit tests pass. > Escaped quotes inside a phrase cause a ParseException > - > > Key: LUCENE-573 > URL: http://issues.apache.org/jira/browse/LUCENE-573 > Project: Lucene - Jav

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-07 Thread Yonik Seeley (JIRA)
d string, but consistent Then there are the "control" chars, \r\n\t, etc. At some point we might want to allow unicode escapes, and keeping backslash as a general escape char will facilitate this. > Escaped quotes inside a phrase cause a ParseException > -

[jira] Assigned: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-07 Thread Michael Busch (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-573?page=all ] Michael Busch reassigned LUCENE-573: Assignee: Michael Busch > Escaped quotes inside a phrase cause a ParseExcept

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-11-07 Thread Michael Busch (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-573?page=comments#action_12447990 ] Michael Busch commented on LUCENE-573: -- Sorry, it took me a while to take care of this patch. You are right, my patch only prevents the ParseException to be

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-10-18 Thread Yonik Seeley (JIRA)
map \" to " 2) map \\ to \ > Escaped quotes inside a phrase cause a ParseException > - > > Key: LUCENE-573 > URL: http://issues.apache.org/jira/browse/LUCENE-573 > Project:

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-10-18 Thread Michael Krkoska (JIRA)
lucene including javacc. Why is the priority of this bug low? What do we have to do to include tha patch in the release? > Escaped quotes inside a phrase cause a ParseException > - > > Key: LUCENE-573 >

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-08-20 Thread Yonik Seeley (JIRA)
I'd say remove the backslash (return +) since that's most consistent with escaping mechanisms in other languages, and it does the right thing if a user escapes something they don't need to. So does anyone currently search for backslash in a phrase query??? > Escaped quotes in

[jira] Commented: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-08-20 Thread Hoss Man (JIRA)
his same justification does not hold for the double-quote character however ... there is no way to inlcude a " character inside of a phrase without escaping, so it seems like query parser should be unescaping it automatically for you. correct? > Escap

[jira] Updated: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-08-07 Thread Michael Busch (JIRA)
queryparser does not unescape *any* escaped characters inside a phrase. You can see that in (2), where the escaped + (plus) character does not become unescaped. Michael > Escaped quotes inside a phrase cause a ParseException > ---

Re: ParseException with escaped quotes in a phrase

2006-05-18 Thread tomi
Filed a Jira issue: http://issues.apache.org/jira/browse/LUCENE-573 Tomislav -- View this message in context: http://www.nabble.com/ParseException-with-escaped-quotes-in-a-phrase-t1647115.html#a4463298 Sent from the Lucene - Java Developer forum at Nabble.com

[jira] Created: (LUCENE-573) Escaped quotes inside a phrase cause a ParseException

2006-05-18 Thread Tomislav Gountchev (JIRA)
Escaped quotes inside a phrase cause a ParseException - Key: LUCENE-573 URL: http://issues.apache.org/jira/browse/LUCENE-573 Project: Lucene - Java Type: Bug Components: QueryParser Versions: 1.9

Re: ParseException with escaped quotes in a phrase

2006-05-18 Thread Chris Hostetter
: Looks like QueryParser doesn't handle escaped quotes when inside a phrase: I believe you are correct. could you file a Jira issue for this, preferably with your main function converted to a JUnit test function that can be added to TestQueryParser? (it doesn't take much to write a JUnit test f

ParseException with escaped quotes in a phrase

2006-05-18 Thread tomi
subject", new StandardAnalyzer()); System.out.println(parser.parse(s)); s = QueryParser.escape(s); System.out.println(s); System.out.println(parser.parse(s)); s = "\""+s+"\""; System.out.println(s); System.out

DO NOT REPLY [Bug 32981] - MultiFieldQueryParser.parse("foo[", ... ) throws ParseException

2005-06-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5313] - reference to ParseException is ambiguous

2005-06-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug

DO NOT REPLY [Bug 32981] - MultiFieldQueryParser.parse("foo[", ... ) throws ParseException

2005-06-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 16025] - QueryParser throws ParseException with fuzzy search

2005-06-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5313] - reference to ParseException is ambiguous

2005-06-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug

DO NOT REPLY [Bug 16025] - QueryParser throws ParseException with fuzzy search

2005-06-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu