AW: Lucene Spatial: sort by best fit

2015-04-01 Thread Simon Rainer
Hi David, excellent - thanks for this. I'll give it a try today. Great! I hope reading my code wasn't too much of a painful experience :-) Ah... I do have notifications set up, but they go to another E-Mail account which *sometimes* gets a little neglected. Fixed that thing too, thanks! Chee

Re: [EXTERNAL] Re: general question

2015-04-01 Thread Sanne Grinovero
Hello all, I don't need to do the same, but the suggestions got me curious. Why would you consider it more efficient to iterate on the child scorers, rather than performing an independent Query on each field? (assuming he indexes each {table,column} content in a different field) Thanks, Sanne O

Recovering from QueryNodeException

2015-04-01 Thread Larry White
Hi, I'm looking for some insight into what conditions cause QueryNodeException and what one typically does about it? Since it's a checked exception, it implies that you are supposed to handle it recover, but the javadoc doesn't say much/anything about what causes it, so it's not so clear how to re

Re: Lucene Spatial: sort by best fit

2015-04-01 Thread david.w.smi...@gmail.com
On Wed, Apr 1, 2015 at 3:21 PM, Simon Rainer wrote: > Hi David, > > ouch - no, missed that. I'm indexing points and polygons with the > RecursivePrefixTreeStrategy right now, so simply didn't look properly at > the BBoxStrategy. (I need to use exact polygons, so that I can make use of > the ultra

AW: Lucene Spatial: sort by best fit

2015-04-01 Thread Simon Rainer
Hi David, ouch - no, missed that. I'm indexing points and polygons with the RecursivePrefixTreeStrategy right now, so simply didn't look properly at the BBoxStrategy. (I need to use exact polygons, so that I can make use of the ultra-cool 2D facet heatmap feature :-) So the best way, I guess,

Re: Lucene Spatial: sorg by best fit

2015-04-01 Thread david.w.smi...@gmail.com
Hi Rainer, The BBoxStrategy is pretty close to this. It does assume indexed rectangles and not other shapes, and it’s limited to one rect value per field, but perhaps this is fine for you nonetheless? See the makeOverlapRatioValueSource() method. If this feature was non-obvious, I think I may n

Lucene Spatial: sorg by best fit

2015-04-01 Thread Simon Rainer
Hi, I'm trying to implement sorting by 'best fit' in Lucene spatial. I.e. I want to query my index for documents that intersect a query rectangle, and get my results sorted by the amount overlap between the query rectangle and the document shape. I was wondering whether this is a use case that