Skip to content

fix: keep prepositions and date phrases out of network search criteria - #33

Merged
VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/network-search-in-phrases
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/network-search-in-phrases

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #32

Summary

  • Add "in", "near", "at", "on", "of" and "to" to STOPWORDS, so they are no longer keywords, topics or database text filters.
  • Geographies taken from "in" or "near" drop a leading "the" and skip values that start with a date word (last, past, next, this, ...) or a number, so "in the last six months" and "in 2024" no longer become places. "in the Bay Area" still gives "bay area".

Validation

  • New regression test in tests/network-search.test.ts covering the two repro queries, a real place after "in the", and a ranked candidate that no longer gets a geography match from "the". It fails without the fix.
  • npx tsc --noEmit, eslint on the changed files, npx vitest run (175 tests) pass.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Nov 1, 2026 12:06am UTC

@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit daefc52 into main Oct 31, 2026
5 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 0e0f12af Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network search turns "in" and date phrases into topics and geographies

1 participant