Re: Error Tolerant Query Parser

2007-04-04 Thread Mohsen Saboorian
Thanks, Absolute tolerance :) It seems that there is no other way. I found somethinig here: http://www.nabble.com/Error-tolerant-query-parsing-tf108987.html Otis Gospodnetic wrote: > > Hm, error tolerant query parser? How do you want to handle queries with > invalid syntax? > &

Re: Error Tolerant Query Parser

2007-04-04 Thread Otis Gospodnetic
Hm, error tolerant query parser? How do you want to handle queries with invalid syntax? Here is one way: try { QueryParser qp = new QueryParser(.); Query q = qp.parse(); } catch (Throwable t) { // tolerate any exception } ;) Bad but quite tolerant. Otis

Error Tolerant Query Parser

2007-04-03 Thread Mohsen Saboorian
Sorry for dual posting. I've just inadvertently submit form before writing the body :) Is there any error tolerant query parser ever written for Lucene? What is the way websites use for advanced searching with Lucene? -- View this message in context: http://www.nabble.com/Error-Tol