Looking for FieldCacheRangeFilter pendant in 5.0.0

2015-02-25 Thread Torsten Krah
Hi, looking at the Changes.html or Migrate.html there is only mentioned that the FieldCache is gone. However there was also a FieldCacheRangeFilter in 4.10.x - guess its gone too? For the missing ChainedFilter a BooleanFilter can be used. Which one should be used for the FieldCacheRangeFilter? k

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

2015-02-25 Thread Simon Rainer
Hi David, thanks for these hints! Unfortunately that didn't change anything yet. I made the fixes that you suggested: val queryPoint = spatialCtx.makePoint(lon, lat) val args = new SpatialArgs(SpatialOperation.IsWithin, spatialCtx.makeCircle(queryPoint, DistanceUtils.dist2Degrees(20, Distance

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

2015-02-25 Thread david.w.smi...@gmail.com
Hi Rainer, I see two issues. One is that you call makePoint with latitude (Y) then longitude (X). Spatial4j is X then Y order. The second issue is more stylistic (but in this case it may explain your symptom due to the X & Y mixup) is that, since you already have a ‘point’, when you call makeCi

Re: Searching for DateRangeField in Lucene 5.0.0

2015-02-25 Thread david.w.smi...@gmail.com
Yeah, Uwe has it basically right. I was on vacation when the release notes were developed and missed the opportunity to review them before they were published. This bullet references “DateRangeField” but that’s the Solr side of this feature. The Lucene side is the combination of NumberRangePrefi

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. Ch

RE: Searching for DateRangeField in Lucene 5.0.0

2015-02-25 Thread Uwe Schindler
Hi, This field type is part of the spatial module. Lucene Core, by default, has no support for ranges, just single-valued numeric values. http://lucene.apache.org/core/5_0_0/spatial/org/apache/lucene/spatial/prefix/tree/DateRangePrefixTree.html But it is not a conventional field like NumericFie

Searching for DateRangeField in Lucene 5.0.0

2015-02-25 Thread Torsten Krah
Hi, reading the release notes from here: https://wiki.apache.org/lucene-java/ReleaseNote50 its written that Lucene got a new DateRangeField: * New DateRangeField type enables Indexing and searching of date ranges, particularly multi-valued ones. However - in which package is this field? Search