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
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
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
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
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
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
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
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
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
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
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?
>
&
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
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
--
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
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
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
16 matches
Mail list logo