11---
2- status : in-progress
2+ status : complete
33created : ' 2025-11-26'
44tags :
55 - search
@@ -10,15 +10,19 @@ tags:
1010 - power-users
1111priority : medium
1212created_at : ' 2025-11-26T06:26:37.183Z'
13- updated_at : ' 2025-11-26T06:49:50.230Z '
13+ updated_at : ' 2025-11-26T07:51:30.760Z '
1414transitions :
1515 - status : in-progress
1616 at : ' 2025-11-26T06:49:50.230Z'
17+ - status : complete
18+ at : ' 2025-11-26T07:51:30.760Z'
19+ completed_at : ' 2025-11-26T07:51:30.760Z'
20+ completed : ' 2025-11-26'
1721---
1822
1923# Advanced Search Capabilities for Specs
2024
21- > ** Status** : ⏳ In progress (Phase 1 ✅ Complete) · ** Priority** : Medium · ** Created** : 2025-11-26 · ** Tags** : search, cli, mcp, core, dx, power-users
25+ > ** Status** : ✅ Complete · ** Priority** : Medium · ** Created** : 2025-11-26 · ** Tags** : search, cli, mcp, core, dx, power-users
2226
2327** Project** : lean-spec
2428** Team** : Core Development
@@ -106,15 +110,15 @@ lean-spec search "tag:api status:planned created:>2025-11"
106110- [x] Keep per-field scoring but allow spec-level term matching
107111- [x] Add unit tests for multi-term queries
108112
109- ### Phase 2: Advanced query syntax
110- - [ ] Design query grammar and AST structure
111- - [ ] Implement query parser with field extraction
112- - [ ] Add boolean operator support (AND/OR/NOT)
113- - [ ] Add date range filter support
114- - [ ] Add fuzzy matching option
115- - [ ] Update CLI search command
116- - [ ] Update MCP search tool
117- - [ ] Add search syntax help command
113+ ### Phase 2: Advanced query syntax ✅
114+ - [x ] Design query grammar and AST structure
115+ - [x ] Implement query parser with field extraction
116+ - [x ] Add boolean operator support (AND/OR/NOT)
117+ - [x ] Add date range filter support
118+ - [x ] Add fuzzy matching option
119+ - [x ] Update CLI search command
120+ - [x ] Update MCP search tool
121+ - [x ] Add search syntax help command
118122
119123## Test
120124
@@ -123,12 +127,12 @@ lean-spec search "tag:api status:planned created:>2025-11"
123127- [x] Multi-term queries return relevant specs even if terms span fields
124128- [x] Scoring still reflects per-field relevance
125129
126- ### Phase 2 tests
127- - [ ] Parse ` "tag:api AND status:planned" ` correctly
128- - [ ] Date range ` created:>2025-11-01 ` filters as expected
129- - [ ] Fuzzy ` authetication~ ` matches ` authentication `
130- - [ ] Combined queries return correct intersections
131- - [ ] Invalid syntax provides helpful error messages
130+ ### Phase 2 tests ✅
131+ - [x ] Parse ` "tag:api AND status:planned" ` correctly
132+ - [x ] Date range ` created:>2025-11-01 ` filters as expected
133+ - [x ] Fuzzy ` authetication~ ` matches ` authentication `
134+ - [x ] Combined queries return correct intersections
135+ - [x ] Invalid syntax provides helpful error messages
132136
133137## Notes
134138
0 commit comments