Skip to content

Commit a5b9f18

Browse files
committed
some cleanups
1 parent b3afee5 commit a5b9f18

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

server/src/main/java/org/elasticsearch/index/mapper/MappedFieldType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public abstract class MappedFieldType {
5757

5858
private final String name;
5959
private final boolean docValues;
60-
protected final boolean isIndexed;
60+
private final boolean isIndexed;
6161
private final boolean isStored;
6262
private final TextSearchInfo textSearchInfo;
6363
private final Map<String, String> meta;
@@ -322,7 +322,7 @@ protected final void failIfNoDocValues() {
322322
}
323323
}
324324

325-
protected void failIfNotIndexed() {
325+
protected final void failIfNotIndexed() {
326326
if (isIndexed == false) {
327327
// we throw an IAE rather than an ISE so that it translates to a 4xx code rather than 5xx code on the http layer
328328
throw new IllegalArgumentException("Cannot search on field [" + name() + "] since it is not indexed.");

server/src/main/java/org/elasticsearch/index/mapper/ValueFetcher.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
package org.elasticsearch.index.mapper;
1010

11-
import org.apache.lucene.index.LeafReaderContext;
1211
import org.elasticsearch.search.fetch.subphase.FetchFieldsPhase;
1312
import org.elasticsearch.search.lookup.ValuesLookup;
1413

server/src/main/java/org/elasticsearch/search/lookup/ValuesLookup.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import org.elasticsearch.common.bytes.BytesReference;
1212
import org.elasticsearch.common.xcontent.XContentType;
13-
import org.elasticsearch.index.mapper.MappedFieldType;
1413
import org.elasticsearch.search.DocValueFormat;
1514

1615
import java.util.List;
@@ -28,7 +27,7 @@ public interface ValuesLookup {
2827
SourceLookup source();
2928

3029
/**
31-
* Returns a LeafDocLookup positioned on the current document
30+
* Returns a list of formatted doc values for a given field on the current document
3231
*/
3332
List<Object> docValues(String field, DocValueFormat format);
3433

0 commit comments

Comments
 (0)