lucene-dev mailing list archives

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

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 = hitsCollection.id(i);
            arrayOfIndividualHits[i] = new IndividualHit(i,
sf.getFieldValue(id), hitsCollection.score(i));
        }
:

Any help in the above would be appreciated.

Cheers
Trevor




---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message