File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
server/src/main/java/org/elasticsearch Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff 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." );
Original file line number Diff line number Diff line change 88
99package org .elasticsearch .index .mapper ;
1010
11- import org .apache .lucene .index .LeafReaderContext ;
1211import org .elasticsearch .search .fetch .subphase .FetchFieldsPhase ;
1312import org .elasticsearch .search .lookup .ValuesLookup ;
1413
Original file line number Diff line number Diff line change 1010
1111import org .elasticsearch .common .bytes .BytesReference ;
1212import org .elasticsearch .common .xcontent .XContentType ;
13- import org .elasticsearch .index .mapper .MappedFieldType ;
1413import org .elasticsearch .search .DocValueFormat ;
1514
1615import 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
You can’t perform that action at this time.
0 commit comments