flexkit search
Searches the records of your project by text, across every entity or only the ones you name, and lists the best matches. It uses the same search as the Studio: exact and prefix matches come first, then near misses for typos. Only searchable attributes are matched.
Synopsis
flexkit search <text> [--entity <name>]... [--limit <n>] [--scope <scope>] [--json] [--project <id>]Examples
# Search every entity
flexkit search "canvas bag"
# Search only products and brands, up to 25 results
flexkit search tote --entity products,brands --limit 25
# Show German labels of scoped display attributes
flexkit search tasche --scope de
# Open the best match
flexkit search BAG-001 -e product --json | jq -r '.[0]._id' | xargs flexkit records get productThe table shows each hit’s entity, id, label (the display attribute) and relevance score, best first. With --json, each hit has entity, plural, _id, label, score and the matched document.
Options
You can also use all global options.
Authentication
Search works with your flexkit login session or with a project API token. Results respect your spaces: records of entities bound to spaces you don’t belong to are left out, and attributes bound to such spaces are removed from the results.
Related
flexkit recordsreads and changes the records you find.- Search configuration decides which attributes are searchable.
Last updated on