AW: [suggestions] fetch terms from a FilterAtomicReader(subclass)?

2014-10-27 Thread Clemens Wyss DEV
Salut Olivier, would you mind providing me your Suggester-class code (or the relevant snippets) as an ideal jump-start? -Clemens -Ursprüngliche Nachricht- Von: Olivier Binda [mailto:olivier.bi...@wanadoo.fr] Gesendet: Montag, 27. Oktober 2014 11:51 An: java-user@lucene.apache.org Betref

Re: AW: [suggestions] fetch terms from a FilterAtomicReader(subclass)?

2014-10-27 Thread Olivier Binda
Here you are. This is written in kotlin but it is similar enough to Java to be usable private fun buildTermsFromIndex(indexReader:IndexReader, field: String, file: File, bits:Bits): WFSTCompletionLookup { val lookup = WFSTCompletionLookup(true) lookup.build(WeightedLuceneDict