{"id":17343413,"url":"https://github.com/firesphere/silverstripe-solr-spatial","last_synced_at":"2025-03-27T09:41:38.107Z","repository":{"id":142282653,"uuid":"403206480","full_name":"Firesphere/silverstripe-solr-spatial","owner":"Firesphere","description":"Add spatial searching to Solr in Silverstripe","archived":false,"fork":false,"pushed_at":"2021-09-05T03:55:23.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T14:29:55.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Firesphere.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-05T03:32:03.000Z","updated_at":"2021-09-05T03:55:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7371548-e75d-4044-ad9e-0507d5738445","html_url":"https://github.com/Firesphere/silverstripe-solr-spatial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-solr-spatial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-solr-spatial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-solr-spatial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-solr-spatial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firesphere","download_url":"https://codeload.github.com/Firesphere/silverstripe-solr-spatial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245820380,"owners_count":20677830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T16:09:19.199Z","updated_at":"2025-03-27T09:41:38.099Z","avatar_url":"https://github.com/Firesphere.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solr search Spatial\n\nExtension for searching with `firesphere/solr-search` adding Spatial searching options.\n\n## Installation\n\n`composer require firesphere/solr-spatial`\n\n## Configuration\n\nAdd the spatial extension to data objects you want/need to have Spatially searched:\n\n```yaml\nYour\\Namespaced\\DataObject:\n  extensions:\n    - Firesphere\\SolrSpatial\\SpatialDataObjectExtension\n```\n\nThis will add a Lat and Lon field for latitude and longitude to your DataObject,\nas well as a method named `getSpatial()`, which returns the latitude and longitude.\n\nTo add the spatial to your Solr core:\n```yaml\nFiresphere\\SolrSearch\\Indexes\\BaseIndex:\n  MySearchCore:\n    Classes:\n      - Page\n    FulltextFields:\n      - Spatial\n```\n\nIf your Spatial is on a relational Object (which is quite common), e.g. a City object, you can add it:\n\n```yaml\nFiresphere\\SolrSearch\\Indexes\\BaseIndex:\n  MySearchCore:\n    Classes:\n      - Page\n    FulltextFields:\n      - City.Spatial\n```\n\nEverything else is taken care of. The Spatial/getSpatial field is defined as such, so Solr knows how to search for it.\n\n## Filtering on spatial data\n\n__To be completed__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiresphere%2Fsilverstripe-solr-spatial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiresphere%2Fsilverstripe-solr-spatial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiresphere%2Fsilverstripe-solr-spatial/lists"}