FieldType myType = new FieldType(TextField.TYPE_NOT_STORED); myType.setIndexOptions(IndexOptions.DOCS_ONLY); document.add(new Field("title", "some title", myType)); document.add(new Field("body", "some contents", myType)); ...
On Sat, Aug 24, 2013 at 3:27 AM, Airway Wong <airwayw...@gmail.com> wrote: > Hi, > > To customize the inverted list for different format, it seems we have to > overload many different classes and functions. We are only interested in > simple inverted index without position/posting information. > > Is it possible to customize an inverted list format that only support > simple inverted index (keyword -> list of (doc, an integer) pairs), without > overloading all classes and functions? > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org