"ruchi thakur" <[EMAIL PROTECTED]> wrote on 10/03/2007 19:32:14:

> does that mean* jakarta&apache* should search for   * jakartaapache*

I assume '*' here is for emphasizing the query text, - this is somewhat
confusing because '*' is part of Lucene's query syntax for wildcard search.
To the question - usually no, but it depends. You could write an analyzer
that would emit a token jakartaapache for input of jakarta&apache though my
guess is that this is not the case, and jakarta&apache and jakartaapache
are two distinct words in your index. See the Lucene FAQ, in particular "
Why am I getting no hits / incorrect hits?", starting with its
recommendation to examine query.toString().

Hope this helps,
Doron

> But using *jakarta&apache* am able to search for *jakarta apache* , but
was
> confused as no reference to this query String(jakarta&apache) could find
> anywhere on net.
>
> Regards,
> Ruchi
> On 3/8/07, Doron Cohen <[EMAIL PROTECTED]> wrote:
> >
> > Most likely the string  jakarta&apache  is analyzed as a single word,
> > both at indexing time and at search time.
> >
> > See also "AnalysisParalysis" in Lucene Wiki.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to