Package org.apache.lucene.codecs.lucene42

Examples of org.apache.lucene.codecs.lucene42.Lucene42Codec


    };
    doTestMixedPostings(codec);
  }
 
  public void testSameCodecDifferentParams() throws Exception {
    Codec codec = new Lucene42Codec() {
      @Override
      public PostingsFormat getPostingsFormatForField(String field) {
        if ("id".equals(field)) {
          return new Pulsing41PostingsFormat(1);
        } else if ("date".equals(field)) {
View Full Code Here


    Directory directory = newDirectory();
    // we don't use RandomIndexWriter because it might add more docvalues than we expect !!!!1
    IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer);
    final DocValuesFormat fast = DocValuesFormat.forName("Lucene42");
    final DocValuesFormat slow = DocValuesFormat.forName("SimpleText");
    iwc.setCodec(new Lucene42Codec() {
      @Override
      public DocValuesFormat getDocValuesFormatForField(String field) {
        if ("dv1".equals(field)) {
          return fast;
        } else {
View Full Code Here

    return new Lucene42NormsFormat(PackedInts.FAST);
  }

  @Override
  public DocValuesFormat docValuesFormat() {
    return new Lucene42DocValuesFormat(PackedInts.FAST);
  }
View Full Code Here

    return new Lucene42NormsFormat(PackedInts.DEFAULT);
  }

  @Override
  public DocValuesFormat docValuesFormat() {
    return new Lucene42DocValuesFormat(PackedInts.DEFAULT);
  }
View Full Code Here

        new AssertingPostingsFormat(),
        new MemoryPostingsFormat(true, random.nextFloat()),
        new MemoryPostingsFormat(false, random.nextFloat()));
   
    addDocValues(avoidCodecs,
        new Lucene42DocValuesFormat(),
        new DiskDocValuesFormat(),
        new SimpleTextDocValuesFormat(),
        new AssertingDocValuesFormat(),
        new CheapBastardDocValuesFormat());
View Full Code Here

    this(1 << 14, false);
  }

  @Override
  public NormsFormat normsFormat() {
    return new Lucene42NormsFormat(PackedInts.FAST);
  }
View Full Code Here

    this(1 << 14, false);
  }

  @Override
  public NormsFormat normsFormat() {
    return new Lucene42NormsFormat(PackedInts.DEFAULT);
  }
View Full Code Here

    this(1 << 14, false);
  }

  @Override
  public NormsFormat normsFormat() {
    return new Lucene42NormsFormat(PackedInts.COMPACT);
  }
View Full Code Here

    this(1 << 14, false);
  }

  @Override
  public NormsFormat normsFormat() {
    return new Lucene42NormsFormat(PackedInts.FAST);
  }
View Full Code Here

    this(1 << 14, false);
  }

  @Override
  public NormsFormat normsFormat() {
    return new Lucene42NormsFormat(PackedInts.DEFAULT);
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.codecs.lucene42.Lucene42Codec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.