Skip to content

Enhance pin rules anchor and normalization#7

Merged
hiimjako merged 11 commits into
oramasearch:mainfrom
hiimjako:enhance-pin-rules
Jan 2, 2026
Merged

Enhance pin rules anchor and normalization#7
hiimjako merged 11 commits into
oramasearch:mainfrom
hiimjako:enhance-pin-rules

Conversation

@hiimjako

@hiimjako hiimjako commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

This PR extends the pin rule functionality to support StartsWith and Contains. It also introduces normalization options for anchor validation:

  • None: No normalization applied (default for backward compatibility).
  • Stem: Applies stemming to both the pattern and the term.

The pin rule structure was updated to include a dedicated normalization field. Also, the Serde serialization and deserialization logic was adjusted to handle these new fields while maintaining backward compatibility for existing is rules.

I've also made the pattern required, since if it was missing, the serializer/deserializer was already returning an error.

See: oramasearch/oramacore#299

@hiimjako hiimjako requested a review from allevo December 22, 2025 21:22
@hiimjako hiimjako self-assigned this Dec 22, 2025
@hiimjako hiimjako added the enhancement New feature or request label Dec 22, 2025
@hiimjako hiimjako changed the title Enhance pin rules Enhance pin rules anchor and normalization Dec 22, 2025
@hiimjako hiimjako merged commit bbb1740 into oramasearch:main Jan 2, 2026
1 check passed
@hiimjako hiimjako deleted the enhance-pin-rules branch January 2, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant