Skip to content

docs: phrase prefix and slop in text search - #1734

Draft
DavIvek wants to merge 1 commit into
mainfrom
docs/text-search-phrase-prefix-slop
Draft

docs: phrase prefix and slop in text search#1734
DavIvek wants to merge 1 commit into
mainfrom
docs/text-search-phrase-prefix-slop

Conversation

@DavIvek

@DavIvek DavIvek commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Release note

Document the "…"* (phrase prefix) and "…"~N (slop / proximity) Tantivy query modifiers in text_search.search. A new Phrase prefix and proximity search section on the text search page explains that phrase prefix matches an ordered phrase whose leading terms are exact and last term is a prefix (the exact-match counterpart of fuzzy_phrase_search, min two terms), and that slop matches phrase terms within N positions of each other. Both apply to named (data.-prefixed) properties as well as search_all and the _edges variants.

Related product PRs

PRs from product repo this doc page is related to:

⚠️ Blocked — keep in draft until the dependency lands. There is no Memgraph product PR yet. Per-property (data.<prop>:) phrase-prefix/slop currently degrades silently because the modifiers are dropped on Tantivy JSON fields; the fix is upstream in Tantivy:

Merging this doc requires that fix to ship in a Tantivy release and a bump of the pinned tantivy version in mgcxx/text_search/Cargo.toml (we pin 0.25.0). No Memgraph C++/Rust changes are needed beyond the version bump — all search paths already route through QueryParser::parse_query.

Checklist:

  • Add appropriate milestone (current release cycle)
  • Add bugfix or feature label, based on the product PR type you're documenting
  • Make sure all relevant tech details are documented
  • Check all content with Grammarly
  • Perform a self-review of my code
  • The build passes locally
  • My changes generate no new warnings or errors

Document the "..."* (phrase prefix) and "..."~N (slop / proximity)
Tantivy query modifiers in text_search.search, with verified examples.
@DavIvek DavIvek self-assigned this Aug 18, 2026
@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview Aug 18, 2026 8:35am

Request Review

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.

2 participants