22 | org.apache.lucene.util.IntsRef |
---|---|
19 | java.io.IOException |
8 | org.apache.lucene.util.Bits |
@@ -2,6 +2,7 @@ package org.apache.lucene.facet.taxonomy.directory; import org.apache.lucene.index.FieldInfo; import org.apache.lucene.index.StoredFieldVisitor; +import org.apache.lucene.util.BytesRef; /* * Licensed to the Apache Software Foundation (ASF) under one or more @@ -28,6 +29,7 @@ abstract class Consts { static final String FULL = "$full_path$"; static final String FIELD_PAYLOADS = "$payloads$"; static final String PAYLOAD_PARENT = "p"; + static final BytesRef PAYLOAD_PARENT_BYTES_REF = new BytesRef(PAYLOAD_PARENT); static final char[] PAYLOAD_PARENT_CHARS = PAYLOAD_PARENT.toCharArray(); /**
@@ -42,7 +42,6 @@ import org.apache.lucene.store.RAMFile; import org.apache.lucene.util.ArrayUtil; import org.apache.lucene.util.Constants; import org.apache.lucene.util.ThreadInterruptedException; -import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.RamUsageEstimator; /** @@ -509,6 +508,7 @@ final class DocumentsWriter { } deletesInRAM.clear(); + deletesFlushed.clear(); openFiles.clear();
@@ -19,6 +19,7 @@ package org.apache.lucene.index; import java.io.IOException; +import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.LuceneTestCase; import org.apache.lucene.util.TermContext; import org.apache.lucene.util._TestUtil; @@ -48,6 +49,7 @@ public class TestOmitTf extends LuceneTestCase { @Override public Explanation idfExplain(TermContext[] terms, IndexSearcher searcher) throws IOException { return new Explanation(1.0f, "Inexplicable"); } + @Override public float scorePayload(int doc, int start, int end, BytesRef payload) { return 1.0f; } }; } }