Define shared search filtering, grouping, and ordering #13
Labels
No labels
area/cli
area/core
area/database
area/indexing
area/query
type/epic
type/feature
type/foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
JayKobe6k/ClariTree#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Provide one typed search pipeline shared by value, function, struct, and enum searches, with deterministic result limits, nested grouping, and ordering.
Shared CLI options
--max-results <n>returns at mostnmatches and reports truncation. Define a safe default and hard maximum.--group-by <field>...accepts ordered fields fromtranslation-unit,name,function,struct,enum, andtype. The first field is the outermost JSON/text grouping. Reject fields that cannot apply to the selected search target.--order-by <field>[:asc|desc]terms. The suffix defaults toasc. This spelling avoids the parsing ambiguity of optional direction tokens in a variadic option while retaining ordered multi-key sorting.Core contract
Acceptance criteria
--max-results 0behavior and upper bounds are explicit.Dependencies
Depends on #2, #3, #4, #5, and #10.
query search value#14query search function#15query search struct#16query search enum#17