: I can try again this weekend to get a clean environment. However, the 
: order I did things in was the reverse of what you suggest. I got the 

Hmmm... then i'm kind of at a loss to explain what you're describing.  
need to see more details of the configs, dir structure, jar 
structure, etc...

: The spatial feature looks intriguing, although I have no idea if it 
: could fit my use case. It looks fairly complex a concept, but maybe it 
: is all the different shapes and geometry that is confusing me. If I 
: thought of my problem in terms of geometry, I would say a chromosome 
: region is like a segment of a line. I would need to define multiple line 
: segments and be able to query by a single point and only return 
: documents that have a line segment that the single point falls on. Does 
: that make sense? Is that at all doable with a spatial query?

The tricky thing about leveraging the spatial stuff for this type of 
problem is that it's frequently better to *not* let yourself think in 
terms of the a straightforward mapping between your problem space and 
geometry.

Instead of modeling your data as documents containing multiple line 
segments and trying to search for a document containing a line segment 
that contains your 1D point, imagine modeling your data as documents 
containing multiple 2D points, one point per "range", where the X 
coordinate is the lower bound of your range, and the Y axis is the upper 
bound of the range...

https://people.apache.org/~hossman/spatial-for-non-spatial-meetup-20130117/#slide8

...and to find all documents containing a range that contains a 
specified input value V, you then query for all documents containing 
points inside of a specially crafted bounding box based on V...

https://people.apache.org/~hossman/spatial-for-non-spatial-meetup-20130117/#slide11

..the big caveat to this approach that i failed to mention before is that 
it presumes there is an absolute min/max definable for the overall range 
of values you are dealing with so that you can define the bounding boxes 
appropriates -- otherwise the geometery won't work.

In anycase .. it's an interesting idea i wanted to through out there for 
you to consider i case it worked for you before you jumped through a tone 
of hoops trying to get a new custom FieldType to work.


-Hoss

Reply via email to