The error occured because 'no index mapper found for field' at
org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec class.
So, i modified a class to return the defaultPostingFormat value not to
throw an exception in
org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec.
@Override
public PostingsFormat getPostingsFormatForField(String field) {
final FieldMappers indexName = mapperService.indexName(field);
if (indexName == null) {
//throw new ElasticSearchIllegalStateException("no index mapper
found for field: [" + field + "]");
return defaultPostingFormat;
}
PostingsFormatProvider postingsFormat =
indexName.mapper().postingsFormatProvider();
return postingsFormat != null ? postingsFormat.get() :
defaultPostingFormat;
}
Is there any workaround to avoid this?
Could it be any problem the code i changed in the future? so far, i don't
see any problem.
The error occured because 'no index mapper found for field' at org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec class.
So, i modified a class to return the defaultPostingFormat value not to throw an exception in org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec.
@Override
public PostingsFormat getPostingsFormatForField(String field) {
final FieldMappers indexName = mapperService.indexName(field);
if (indexName == null) {
//throw new ElasticSearchIllegalStateException("no index mapper found for field: [" + field + "]");
return defaultPostingFormat;
}
PostingsFormatProvider postingsFormat = indexName.mapper().postingsFormatProvider();
return postingsFormat != null ? postingsFormat.get() : defaultPostingFormat;
}
Is there any workaround to avoid this?
Could it be any problem the code i changed in the future? so far, i don't see any problem.
The error occured because 'no index mapper found for field' at
org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec class.
So, i modified a class to return the defaultPostingFormat value not to
throw an exception in
org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec.
@Override
public PostingsFormat getPostingsFormatForField(String field) {
final FieldMappers indexName = mapperService.indexName(field);
if (indexName == null) {
//throw new ElasticSearchIllegalStateException("no index
mapper found for field: [" + field + "]");
return defaultPostingFormat;
}
PostingsFormatProvider postingsFormat =
indexName.mapper().postingsFormatProvider();
return postingsFormat != null ? postingsFormat.get() :
defaultPostingFormat;
}
I added the same thing like 6 days ago here:
you should be fine with your change - that is a bug though. the soon coming
0.90.1 release will fix the issue.
simon
Is there any workaround to avoid this?
Could it be any problem the code i changed in the future? so far, i don't
see any problem.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.