If you move to Lucene 6.1, then this should be Lucene60Codec. More generally that would be the same codec that is returned by Codec.getDefault.
Le mer. 29 mars 2017 à 18:11, Andreas Sewe <andreas.s...@codetrails.com> a écrit : > Hi, > > I am currently attempting a Lucene 5.x to 6.x migration (from 5.2.1 to > 6.1, to be precise), and am looking for a replacement for Lucene50Codec: > > indexWriterConfig.setCodec(new Lucene50Codec(Mode.BEST_COMPRESSION)); > > The org.apache.lucene.codecs.lucene50 package is still there, so what I > am after is probably possible, but unfortunately not obvious. > > Any pointers are greatly appreciated. > > Best wishes, > > Andreas > > -- > Codetrails GmbH > The knowledge transfer company > > Robert-Bosch-Str. 7, 64293 Darmstadt > Phone: +49-6151-276-7092 <+49%206151%202767092> > Mobile: +49-170-811-3791 <+49%20170%208113791> > http://www.codetrails.com/ > > Managing Director: Dr. Marcel Bruch > Handelsregister: Darmstadt HRB 91940 > >