lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trevor Lee" <>
Subject Substring search and Sorting
Date Mon, 17 Nov 2003 04:03:11 GMT

I'm a new developer who uses OpenCMS.
OpenCMS uses lucene 1.2 so i'd like to stick to that version if possible.

The two questions i have are:
1. How do i do substring searches in Lucene?. ie. a search for "heat" will
return "theatre".
I don't have that much exposure to lucene and would prefer not to change too
much code.

2. I've downloaded the searchbean in the sandbox as well but when i compile
the HitsIterator class i get the following error message:
The method id(int) is undefined for the type Hits.
The method that generates this error is sortByField():
        long first = System.currentTimeMillis();
        for (int i=0; i<hitsCollection.length(); i++) {
            int id =;
            arrayOfIndividualHits[i] = new IndividualHit(i,
sf.getFieldValue(id), hitsCollection.score(i));

Any help in the above would be appreciated.


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

View raw message