Expose phrase slop for proximity search

Aperta
#53 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@kylebernhardy ci sta già lavorando.

Dal 30/10/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, rust

Direzione di ricerca

Start with the public API in ts/native.ts and the native implementation in src/engine.rs, then review the README wrapper contract and Tantivy's PhraseQuery documentation. Define how slop interacts with position gaps, stop words, transpositions, synonyms, multivalued fields, and existing request and execution limits before extending simple and Boolean clauses and match tracing. Done means the bounded option preserves current behavior at zero and has positive and negative proximity tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Outcome

Expose phrase slop for proximity search.

Current behavior

Verified by source inspection of the public API and native implementation at the assessed revision; no runtime reproduction was performed. Phrase queries use PhraseQuery::new_with_offset without a public slop option. Queries cannot allow intervening words, such as matching waterproof trail shoe for waterproof shoe.

Acceptance criteria

  • Add a bounded nonnegative phrase slop option with zero preserving current behavior.
  • Specify how analyzed position gaps, stop words, transpositions, synonyms, and multivalued fields interact with slop.
  • Support the option in simple and Boolean search clauses and match tracing.
  • Test positive/negative proximity cases and qualify cost under existing request and execution limits.

References and scope

Parent: Epic: Extend fulltext search capabilities beyond the initial wrapper API.

Tantivy capability. Wrapper contract. This is proposed standalone-library capability with no committed release. Application-specific authorization, source projection, and product API integration are outside this issue.

Comment generated by kAIle (GPT-6)

Lingua principale
Rust
Stelle
3
Fork
0
Merge medio
15h 12m
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/fulltext

Tutte le issue di HarperFast/fulltext

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.