Documentation on spatial3d module

2019-04-25 Thread Bingtao Yin
Hi, I want to index some geo 3d points(which have lat/lon and altitude) by elasticsearch, but elasticsearch currently has no support for 3d points. I find there is a spatial3d module in lucene, but there seems no examples about this module. Any documentation about this module(e.g. best

Re: More Spatial Relations

2018-06-01 Thread Bingtao Yin
uld cast the value, a Shape, to a JtsGeometry > (a Spatial4j shape) and then call getGeom() to get the underlying JTS > Geometry instance. If you find you need to fork entire classes then feel > free to suggest improvements to the extensibility. > > ~ David > > On Tue, May 29, 20

More Spatial Relations

2018-05-29 Thread Bingtao Yin
Hi guys, Currently only limited spatial relations are supported(e.g. withins/intersects in prefix tree). In DE-9IM, there are abount 8 relations. If I want to implement query for other relations, should I just serialize shape to binary format(e.g. wkb) and fall back to jts? Any development plan

Re: Optimize FTS memory footprint

2017-12-12 Thread Bingtao Yin
Hi elirev, The field "index" of class "org.apache.lucene.codecs.blocktree.FieldReader" is the fst of each field; its type is FST. I close a index and pick a shard; wirte some code to directly read the shard and then use the reflection to get the actual fst object of _uid field. The ramBytesUsed()

How to add custom attributes on FieldInfo using Lucene 5.2.1

2017-02-23 Thread Bingtao Yin
Hello, On Lucene 5.2.1, I want to add some attributes on some fields, such as marking a StringField as unique, which is defined by user when indexing. I find there is a attributes map in FieldInfo's ctor, but can't pass any attributes to the map. Any ideas to implement this? Thanks.