You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Nitin Patil <ni...@cisco.com> on 2003/05/13 00:31:30 UTC
Q: DefaultAnalyzer behavior for wild card searches
Hi,
I'm having an indexed field ("title") with the following value
"Foo_general"
I am trying several search combinations to return this title.
1. Query => "title:Foo" returns the title.
2. Query => "title:general" returns the title.
3. Query => "title:Foo_gen*" doesn't seem to work.
Any clues?
Thanks,
- Nitin
________________________________________________________________________
Nitin Patil
ASTG TACWeb
Phone: +1 408-853-8889
Email: nipatil@cisco.com
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: DefaultAnalyzer behavior for wild card searches
Posted by Tatu Saloranta <ta...@hypermall.net>.
On Monday 12 May 2003 16:46, Terry Steichen wrote:
> I believe it's because the Analyzer is probably treating "Foo_general" as
> "Foo general".
Yes, and futhermore, for prefix query ("Foo_gen*") no analyzer is invoked,
so no tokenization occurs. And since index has no word starting with
Foo_gen (just 2 words, Foo and gen) there's no match.
-+ Tatu +-
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: DefaultAnalyzer behavior for wild card searches
Posted by Terry Steichen <te...@net-frame.com>.
I believe it's because the Analyzer is probably treating "Foo_general" as
"Foo general".
Regards,
Terry
----- Original Message -----
From: "Nitin Patil" <ni...@cisco.com>
To: <lu...@jakarta.apache.org>
Cc: "Pat Lightbody" <pl...@cisco.com>; "Nitin Patil" <ni...@cisco.com>
Sent: Monday, May 12, 2003 6:31 PM
Subject: Q: DefaultAnalyzer behavior for wild card searches
> Hi,
>
> I'm having an indexed field ("title") with the following value
> "Foo_general"
>
> I am trying several search combinations to return this title.
> 1. Query => "title:Foo" returns the title.
> 2. Query => "title:general" returns the title.
> 3. Query => "title:Foo_gen*" doesn't seem to work.
>
> Any clues?
>
> Thanks,
> - Nitin
>
> ________________________________________________________________________
> Nitin Patil
> ASTG TACWeb
> Phone: +1 408-853-8889
> Email: nipatil@cisco.com
> ________________________________________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org