Commit de5db85
committed
feat: implement paper search query planning and filtering logic
- Add `paperSearchCommon.ts` to handle search query parsing, normalization, and filtering.
- Implement functions for building search query plans, resolving date bounds, and filtering candidates based on various criteria.
- Create tests for provider query planning in `providerQueryPlanning.test.ts` to ensure correct handling of OR clauses and filter application.
- Add tests in `searchAggregation.test.ts` to verify the merging of cross-provider duplicates and the preservation of the semantic scholar paper ID.1 parent d4d22ea commit de5db85
15 files changed
Lines changed: 3807 additions & 197 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | 269 | | |
271 | | - | |
| 270 | + | |
272 | 271 | | |
273 | | - | |
| 272 | + | |
274 | 273 | | |
| 274 | + | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
0 commit comments