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…
Reference in New Issue