mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
increase precision to 16 from 12, omit norms / tf on geohash
This commit is contained in:
parent
c3cb5a3e34
commit
3fa214653e
@ -76,7 +76,7 @@ public class GeoPointFieldMapper implements XContentMapper, ArrayValueMapperPars
|
||||
|
||||
private Integer precisionStep;
|
||||
|
||||
private int precision = GeoHashUtils.PRECISION;
|
||||
private int precision = 16; // to get high precision
|
||||
|
||||
private Field.Store store = Defaults.STORE;
|
||||
|
||||
@ -114,7 +114,8 @@ public class GeoPointFieldMapper implements XContentMapper, ArrayValueMapperPars
|
||||
ContentPath.Type origPathType = context.path().pathType();
|
||||
context.path().pathType(pathType);
|
||||
|
||||
GeoHashFieldMapper geohashMapper = new GeoHashFieldMapper.Builder(name).includeInAll(false).build(context);
|
||||
GeoHashFieldMapper geohashMapper = new GeoHashFieldMapper.Builder(name)
|
||||
.index(Field.Index.NOT_ANALYZED).omitNorms(true).omitTermFreqAndPositions(true).includeInAll(false).store(store).build(context);
|
||||
|
||||
|
||||
NumberFieldMapper latMapper = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user