Re: Error tolerant text search with Lucene?

2008-04-13 Thread Grant Ingersoll
Given the way people misspell these days, I think you could treat "correct" terms as being incorrect and use your spellchecker to give you the alternates based on your index? You might also look into the FuzzyQuery. On Apr 3, 2008, at 9:11 AM, Marjan Celikik wrote: Hi everyone, I know

Re: Error tolerant text search with Lucene?

2008-04-04 Thread Mathieu Lecarme
Marjan Celikik a écrit : Mathieu Lecarme wrote: wever I don't fully understand what do you mean by "iterate over your query". I would like a conceptual answer how is this done with Lucene, not a technical one.. Your query is a tree, with BooleanQuery as branch and other query as leaf. If you

Re: Error tolerant text search with Lucene?

2008-04-04 Thread Marjan Celikik
Mathieu Lecarme wrote: wever I don't fully understand what do you mean by "iterate over your query". I would like a conceptual answer how is this done with Lucene, not a technical one.. Your query is a tree, with BooleanQuery as branch and other query as leaf. If you wont to transforma query

Re: Error tolerant text search with Lucene?

2008-04-04 Thread Mathieu Lecarme
Marjan Celikik a écrit : Mathieu Lecarme wrote: You have to iterate over your query, if it's a BooleanQuery, keep it, if it's a TermQuery, replace it with a BooleanQuery with all variants of the Term with Occur.SHOULD M. Thanks.. however I don't fully understand what do you mean by "iterat

Re: Error tolerant text search with Lucene?

2008-04-04 Thread Marjan Celikik
Mathieu Lecarme wrote: You have to iterate over your query, if it's a BooleanQuery, keep it, if it's a TermQuery, replace it with a BooleanQuery with all variants of the Term with Occur.SHOULD M. Thanks.. however I don't fully understand what do you mean by "iterate over your query". I wou

Re: Error tolerant text search with Lucene?

2008-04-04 Thread Mathieu Lecarme
Marjan Celikik a écrit : Hi everyone, I know that there are packages that support the "Did you mean ... ?" search features with lucene which tries to find the most suited correct-word query.. however, so far I haven't encountered the opposite search feature: given a correct query, find all docum

Re: Error tolerant text search with Lucene?

2008-04-03 Thread Marjan Celikik
Dominique Béjean wrote: http://today.java.net/pub/a/today/2005/08/09/didyoumean.html -Message d'origine- De : Marjan Celikik [mailto:[EMAIL PROTECTED] Envoyé : jeudi 3 avril 2008 15:12 À : java-user@lucene.apache.org Objet : Error tolerant text search with Lucene? Hi everyon

RE: Error tolerant text search with Lucene?

2008-04-03 Thread Dominique Béjean
http://today.java.net/pub/a/today/2005/08/09/didyoumean.html -Message d'origine- De : Marjan Celikik [mailto:[EMAIL PROTECTED] Envoyé : jeudi 3 avril 2008 15:12 À : java-user@lucene.apache.org Objet : Error tolerant text search with Lucene? Hi everyone, I know that there are pac

Error tolerant text search with Lucene?

2008-04-03 Thread Marjan Celikik
Hi everyone, I know that there are packages that support the "Did you mean ... ?" search features with lucene which tries to find the most suited correct-word query.. however, so far I haven't encountered the opposite search feature: given a correct query, find all documents which contain misspel

Error tolerant text search with Lucene?

2008-04-03 Thread Marjan Celikik
Hi everyone, I know that there are packages that support the "Did you mean ... ?" search features with lucene which tries to find the most suited correct-word query.. however, so far I haven't encountered the opposite search feature: given a correct query, find all documents which contain mis

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

Error-Tolerant

2007-04-03 Thread Mohsen Saboorian
-- View this message in context: http://www.nabble.com/Error-Tolerant-tf3524057.html#a9831495 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Error tolerant query parsing

2005-06-28 Thread Chris Hostetter
9:05 -0700 : From: Marvin Humphrey <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: Error tolerant query parsing : : Greetings, : : Is it possible to have Lucene parse malformed queries? For instance, : is there a way to have this

Error tolerant query parsing

2005-06-28 Thread Marvin Humphrey
Greetings, Is it possible to have Lucene parse malformed queries? For instance, is there a way to have this query... art museums "new york city ... return results for ... art museums "new york city" ... or is that just a parse error, end of story? It's a DWIM* thing. -- Marvin Humphrey