You can use the geodist function to sort results by. It can store coordinates in two different field types: solr.PointType for n-dimensional points, and solr.LatLonType for a two-dimensional point for geospatial search. How-to: Distance Sort / Boost Points-only Sort with geodist(). ![]() Return getResultList(solrQuery, AddressDocument. geodist is a distance function that takes three optional parameters: (sfield,latitude,longitude). Since version 3.1, Solr has support for spatial search, including geospatial search. Spatial in Lucene and Solr David Smiley Lucene/Solr search developer / consultant 2016. tParam( "sfield", "latlng") // function外でsfieldを指定 The rest of this document is about the still-supported older approach. With the assistance of Solr spatial functions like geodist we can immediately address some common scenarios such as: Generating bin alerts and warnings across locomotives, train, and railway. ![]() ![]() tSortFieldで指定 public SolrSearchResult getSpatialCircle() ") // sfield指定を除去 The Solr adapters for it are documented here: SolrAdaptersForLuceneSpatial4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |