rangefind

v0.3.2
io.github.xjodoin/rangefind Checked 3 days ago Published 4 months ago

Search 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.

ParameterTypeDescription
index *stringWhich 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_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.

ParameterTypeDescription
index *stringWhich 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 *stringThe typed prefix.
shardsarraySharded indexes only: restrict to shard ids or group labels (e.g. ["quebec"] or ["canada"]). Unknown names fail listing the available options.
sizeinteger

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.

ParameterTypeDescription
index *stringWhich 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
shardsarraySharded indexes only: restrict to shard ids or group labels (e.g. ["quebec"] or ["canada"]). Unknown names fail listing the available options.