lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Kor" <dave....@nexusedge.com>
Subject RE: Wildcard search - Why can't I search for *term?
Date Fri, 05 Apr 2002 02:58:05 GMT

In a way, *term searches are supported - just iterate through every term in
TermEnum. Unfortunately, this is a linear O(n) algorithm so it does become
very slow as the number of terms in the index increases. If your index is
small (eg, < 1GB), I find the search time still pretty acceptable.
Otherwise, the I suggest you be a little creative in the way you create your
index (eg, keep search terms in reverse "mret*" instead of "*term")



Dave Kor Kian Wei
Consultant
Product Engineering
NexusEdge Technologies Pte. Ltd.
6 Aljunied Ave 3, #01-02 (Level 4)
Singapore 389932
Tel : (+65)848-2552
Fax : (+65)747-4536
Web : www.nexusedge.com

> -----Original Message-----
> From: Sheldon Shi [mailto:sshi@tightlink.com]
> Sent: Friday, April 05, 2002 9:11 AM
> To: 'lucene-user@jakarta.apache.org'
> Subject: Wildcard search - Why can't I search for *term?
>
>
> As I understand it Lucene does not support wildcard search terms
> in the form of *term. But in my project I need to search for
> terms by their tails. Does anyone have a work around?
>
> Thanks.
>
> Sheldon
>
> --
> To unsubscribe, e-mail:
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message