rangefind
v0.3.2Search rangefind static indexes: full-text, geo, autocomplete, facets - no server, just files.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rangefind_info Index metadata
Metadata about a rangefind index: document total, build time, provenance (source/attribution/license/data version), enabled features, and — for sharded indexes — the shard list with ids, groups, coverage bounding boxes, and totals. Call this first to learn what an index contains and how to scope queries.
| Parameter | Type | Description |
|---|---|---|
index * | string | Which index to query: a configured index name (see rangefind_list_indexes), or — in open mode — a local directory path or http(s) URL of any rangefind index. |
rangefind_search Search an index
Full-text search over a rangefind index: BM25F relevance with typo correction, facet counts, facet/numeric filters, sorting, geo queries (radius, bounding box, nearest-first, distance boost), shard scoping, and pagination. Returns ranked results with their display fields and scores. `total` may be a fast lower bound flagged `approximate`; use rangefind_count for exact totals.
| Parameter | Type | Description |
|---|---|---|
index * | string | Which index to query: a configured index name (see rangefind_list_indexes), or — in open mode — a local directory path or http(s) URL of any rangefind index. |
facets | array | Facet field names to count for this query. |
filters | object | Filters, e.g. {"facets":{"category":["restaurant"]},"numbers":{"year":{"min":1990,"max":2000}},"booleans":{"open":true}}. |
geo | object | Geo query over an index with geo fields. |
page | integer | |
q | string | Query text. May be empty for pure geo/filter browsing. |
shards | array | Sharded indexes only: restrict to shard ids or group labels (e.g. ["quebec"] or ["canada"]). Unknown names fail listing the available options. |
size | integer | |
sort | string | Sort by a number/boolean field: "field" ascending or "-field" descending. Omit for relevance. |
rangefind_suggest Autocomplete
Search-as-you-type autocomplete: prefix and mid-token suggestions ranked by weight. Useful to complete a partial place or entity name before a full search.
| Parameter | Type | Description |
|---|---|---|
index * | string | Which index to query: a configured index name (see rangefind_list_indexes), or — in open mode — a local directory path or http(s) URL of any rangefind index. |
q * | string | The typed prefix. |
shards | array | Sharded indexes only: restrict to shard ids or group labels (e.g. ["quebec"] or ["canada"]). Unknown names fail listing the available options. |
size | integer |
rangefind_count Exact match count
Exact number of documents matching a text query, without fetching results. Cheaper than rangefind_search when only the total matters.
| Parameter | Type | Description |
|---|---|---|
index * | string | Which index to query: a configured index name (see rangefind_list_indexes), or — in open mode — a local directory path or http(s) URL of any rangefind index. |
q * | string | |
shards | array | Sharded indexes only: restrict to shard ids or group labels (e.g. ["quebec"] or ["canada"]). Unknown names fail listing the available options. |