lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Wildcard workaround
Date Wed, 28 May 2003 18:00:35 GMT
The problem with that solution is the same as what the other thread 
about OutOfMemory is discussing with wildcard queries.

Just prefixing something with a fixed query to 'hack' a wildcard query 
could lead to performance/memory issues.

I recommend indexing the file extension (or mime type) as a separate 


On Wednesday, May 28, 2003, at 11:58  AM, David Warnock wrote:

> Aviran,
>> You can also index the file names with a leading character. For 
>> instance
>> index "file1.exe" will be indexed as "_file1.exe" and always add the
>> leading character to the search term.
>> So if the user input is "*.exe" your query should be "_*.exe" and if 
>> the
>> user input "fi*" you'll change it to "_fi*"
> Now that is a much neater solution than mine. Does this cause problems 
> with unbalanced indexes or anything as all terms begin with the same 
> character?
> Dave
> -- 
> David Warnock, Sundayta Ltd.
> iDocSys for Document Management. VisibleResults for Fundraising.
> Development and Hosting of Web Applications and Sites.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message