lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kumaran <>
Subject sortfield does not has any effect when using with FieldComparator- Why?
Date Tue, 08 Apr 2014 07:40:06 GMT
i dont understand how sort by distance has been achieved using below
mentioned code.

Please explain lucene handles sortfield if sortfield is ""?

   DistanceQueryBuilder queryBuilder = new
DistanceQueryBuilder(latitude, longitude, radius, "lat", "lon",
CartesianTierPlotter.DEFALT_FIELD_PREFIX, true);
   DistanceFieldComparatorSource distComp = new
   Sort distSort = new Sort(new SortField("", distComp,false));

PS: i am using lucene 3.0.3

Raised the same here too.

Kumaran R

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message