lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-8814) Suppor GeoJSON response format
Date Wed, 09 Mar 2016 20:36:40 GMT

     [ https://issues.apache.org/jira/browse/SOLR-8814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ryan McKinley updated SOLR-8814:
--------------------------------
    Attachment: SOLR-8814-add-GeoJSONResponseWriter.patch

Here is a patch...  now i will try to figure out this git bizness!

> Suppor GeoJSON response format
> ------------------------------
>
>                 Key: SOLR-8814
>                 URL: https://issues.apache.org/jira/browse/SOLR-8814
>             Project: Solr
>          Issue Type: New Feature
>          Components: Response Writers
>            Reporter: Ryan McKinley
>            Priority: Minor
>             Fix For: master, 6.1
>
>         Attachments: SOLR-8814-add-GeoJSONResponseWriter.patch
>
>
> With minor changes, we can modify the existing JSON writer to produce a GeoJSON `FeatureCollection`
for ever SolrDocumentList.  We can then pick a field to use as the geometry type, and use
that for the Feature#geometry
> {code}
> "response":{"type":"FeatureCollection","numFound":1,"start":0,"features":[
>       {"type":"Feature",
>         "geometry":{"type":"Point","coordinates":[1,2]},
>         "properties":{
>           ... the normal solr doc fields here ...}}]
>   }}
> {code}
> This will allow adding solr results directly to various mapping clients like [Leaflet|http://leafletjs.com/]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message