Customizing levels in DateRangePrefixTree (or using number ranges directly?)

2015-04-09 Thread Simon Rainer
Hi, I'm using DateRangePrefixTree and NumberRangePrefixTreeStrategy to show time histograms for my search results. This works perfectly. But is there a way to configure the way the levels are defined in the index? In my case, documents only come with integer ranges (from year X to year Y),

AW: Lucene Spatial: sort by best fit

2015-04-02 Thread Simon Rainer
@lucene.apache.org Betreff: Re: Lucene Spatial: sort by best fit On Wed, Apr 1, 2015 at 3:21 PM, Simon Rainer rainer.si...@ait.ac.at 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

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

AW: Lucene Spatial: sort by best fit

2015-04-01 Thread Simon Rainer
was non-obvious, I think I may need to make this more prominent from the BBoxStrategy class level javadocs. Did you at least find this strategy? ~ David Smiley Freelance Apache Lucene/Solr Search Consultant/Developer http://www.linkedin.com/in/davidwsmiley On Wed, Apr 1, 2015 at 1:49 PM, Simon

Time range facets on documents associated with a time interval

2015-03-25 Thread Simon Rainer
Hi, I'm trying to implement dynamic range facets in Lucene, along the same lines as in the org.apache.lucene.demo.facet.RangeFacetsExample. However, in my case I'm dealing with documents that don't have a single timestamp, but an interval defined by a start- and end-timestamp. What I'm trying

AW: Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-26 Thread Simon Rainer
for the maxLevel parameter of the GeoHashPrefixTree (d'oh) and this is what messed things up. Anyways. Issue solved and, lesson learned ;-) Thanks, Rainer Von: Simon Rainer Gesendet: Mittwoch, 25. Februar 2015 17:11 An: java-user@lucene.apache.org Betreff: AW

Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-25 Thread Simon Rainer
Hi! I have problems getting distance sorting to work in Lucene Spatial. (I'm using v4.10.3.) I'm following the SpatialExample.java from the Lucene docs. My code is below (it's Scala, but translates 1:1 into Java). When I run the query, results don't seem to be affected by the sorting at all.

AW: Can't get distance sorting to work in Lucene Spatial 4.10.3

2015-02-25 Thread Simon Rainer
that the sort works. ~ David On Wed, Feb 25, 2015 at 7:18 AM, Simon Rainer rainer.si...@ait.ac.at wrote: Hi! I have problems getting distance sorting to work in Lucene Spatial. (I'm using v4.10.3.) I'm following the SpatialExample.java from the Lucene docs. My code is below (it's Scala