lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Depreciated IntField field in v6
Date Fri, 15 Apr 2016 15:48:25 GMT
Hello,

I was using the IntField field to set the weight on my suggester.
(LegacyIntField works)

old:

document.add(new IntField(
                    FieldConstants.LUCENE_WEIGHT_LINES,
catalogue.getSearchWeight(), Field.Store.YES));

I tried to use the IntPoint but it does not seem to work:

new:

document.add(new IntPoint(FieldConstants.LUCENE_WEIGHT_LINES,
                    catalogue.getSearchWeight()));

Is this the correct way t do it now?  There is no Field.Store.YES?

Cheers Greg

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message