feat(search): geohash aggregation (bleve + opensearch) - #3272
Conversation
Not up to standards ⛔🟢 Coverage
|
| Metric | Results |
|---|---|
| Coverage variation | Report missing for bda62d71 |
| Diff coverage | ✅ 74.05% diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (bda62d7) Report Missing Report Missing Report Missing Head commit (59aacc8) 84453 20148 23.86% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#3272) 158 117 74.05% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Adds a geohash-grid aggregation to search, so a client can get map-cell density (bucket key = geohash cell, value = doc count) across all accessible spaces in one query.
New optional
AggregationOption.geohash_precision(1-12). Clients aggregate onlocation; the server resolves it to the indexed geo field and rejects non-geo fields.geohash_gridon the geo-point sibling.location_geohash_1..12) and runs a terms facet on the requested length. Same cells and counts as OpenSearch.No schema-version bump: the mapping change is additive, so the existing reconcile extends the index in place and warns to reindex; no fresh index needed.
Stacked on #3211 (graph search query + aggregations). Independent of geo-KQL (#3212): the only shared helper (
ResolveGeoField) is included here.