lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Nix <...@spatially.com>
Subject [spatial] Indexing polygons?
Date Thu, 07 Jan 2016 03:58:56 GMT
Hi,

Is there an example in the lucene-solr source to show how to index polygons
and how to search with and for indexed polys? I'm looking in
lucene/spatial/src/test/ and I see an example of a point and it seems
obvious:

doc.add(new StoredField(strategy.getFieldName, pt.getX + " " + pt.getY))

But nothing regarding polygons is jumping out at me. If there isn't such an
example, can someone provide a short one?

Thanks
-- 
--nix

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