|
|
@@ -34,10 +34,8 @@ import org.elasticsearch.index.analysis.AnalysisService;
|
|
|
import org.elasticsearch.index.mapper.object.RootObjectMapper;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -288,16 +286,6 @@ public abstract class ParseContext {
|
|
|
return in.id();
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void ignoredValue(String indexName, String value) {
|
|
|
- in.ignoredValue(indexName, value);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public String ignoredValue(String indexName) {
|
|
|
- return in.ignoredValue(indexName);
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public void id(String id) {
|
|
|
in.id(id);
|
|
|
@@ -390,8 +378,6 @@ public abstract class ParseContext {
|
|
|
|
|
|
private StringBuilder stringBuilder = new StringBuilder();
|
|
|
|
|
|
- private Map<String, String> ignoredValues = new HashMap<>();
|
|
|
-
|
|
|
private AllEntries allEntries = new AllEntries();
|
|
|
|
|
|
private float docBoost = 1.0f;
|
|
|
@@ -421,7 +407,6 @@ public abstract class ParseContext {
|
|
|
this.source = source == null ? null : sourceToParse.source();
|
|
|
this.path.reset();
|
|
|
this.allEntries = new AllEntries();
|
|
|
- this.ignoredValues.clear();
|
|
|
this.docBoost = 1.0f;
|
|
|
this.dynamicMappingsUpdate = null;
|
|
|
}
|
|
|
@@ -523,16 +508,6 @@ public abstract class ParseContext {
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void ignoredValue(String indexName, String value) {
|
|
|
- ignoredValues.put(indexName, value);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public String ignoredValue(String indexName) {
|
|
|
- return ignoredValues.get(indexName);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Really, just the id mapper should set this.
|
|
|
*/
|
|
|
@@ -710,10 +685,6 @@ public abstract class ParseContext {
|
|
|
|
|
|
public abstract String id();
|
|
|
|
|
|
- public abstract void ignoredValue(String indexName, String value);
|
|
|
-
|
|
|
- public abstract String ignoredValue(String indexName);
|
|
|
-
|
|
|
/**
|
|
|
* Really, just the id mapper should set this.
|
|
|
*/
|