Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location querying research #103

Open
jduss4 opened this issue Dec 10, 2019 · 0 comments
Open

Location querying research #103

jduss4 opened this issue Dec 10, 2019 · 0 comments
Assignees
Labels

Comments

@jduss4
Copy link
Contributor

jduss4 commented Dec 10, 2019

If we store lat / lng in the correct field format, it should not be hard to add basic querying to API that could potentially would with Solr and Elasticsearch. Perhaps with circle range?

ES: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html

{
    "query": {
        "bool" : {
            "must" : {
                "match_all" : {}
            },
            "filter" : {
                "geo_distance" : {
                    "distance" : "200km",
                    "pin.location" : {
                        "lat" : 40,
                        "lon" : -70
                    }
                }
            }
        }
    }
}

Solr: https://lucene.apache.org/solr/guide/6_6/spatial-search.html

@jduss4 jduss4 added the discuss label Dec 10, 2019
@jduss4 jduss4 added this to the v2 launch to power center multi project search milestone Jan 6, 2020
@wkdewey wkdewey modified the milestones: v2 launch to power center multi project search, v2 Launch to power Petitioning for Freedom (Habeas Corpus) May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants