The compiler complains about
new HitCollector() {
public void collect(int32_t doc, float score) {
bits.set(doc);
}
}
On Wed, Oct 14, 2009 at 6:35 AM, Onilton Maciel <oniltonmac...@gmail.com>wrote:
> This one
>
> Searcher
> <http://clucene.sourceforge.net/doc/html/classlucene_1_1search_1_1Searcher.html>
> searcher = new IndexSearcher(indexReader);
>
>
> final BitSet bits = new BitSet(indexReader.maxDoc());
> searcher.search(query, new HitCollector() {
> public void collect(int32_t doc, float score) {
> bits.set(doc);
> }
> });
>
>
>
> On Wed, Oct 14, 2009 at 4:23 AM, Ben van Klinken <bvanklin...@gmail.com>wrote:
>
>> Which example were you looking at?
>>
>> Using a hitcollector is probably the best way to go.
>>
>> ben
>>
>> 2009/10/13 Onilton Maciel <oniltonmac...@gmail.com>:
>> > Are there anyway to get the score of Hits class without the
>> normalization? I
>> > mean the raw value, not between 0 and 1.
>> >
>> >
>> > I looked at the documentation. And thought HitColletor was the way to
>> go.
>> > But the example didn't work...
>> >
>> > Are there any other way?
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> > is the only developer event you need to attend this year. Jumpstart your
>> > developing skills, take BlackBerry mobile applications to market and
>> stay
>> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> > http://p.sf.net/sfu/devconference
>> > _______________________________________________
>> > CLucene-developers mailing list
>> > CLucene-developers@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/clucene-developers
>> >
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> CLucene-developers mailing list
>> CLucene-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers