Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support matching from beginning of item and support scoring based on … #50

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

750
Copy link
Collaborator

@750 750 commented Nov 30, 2024

This addresses 2 things:

  1. default search matches symbols from end of line, so for query:123 item:123abc123 the match is displayed as 123abc123, not *123**abc123. This is unintuitive, probably legacy bug. New option -z allows to fix this

  2. now that we have sensible matching let's support scoring items with early matches higher via option -a (Search results not the most relevant #19)

-a -z query:123 123abc > abc123
-z query:123 123abc == abc123

-a query:123 123abc < abc123
no options query:123 123abc == abc123

@chipsenkbeil
Copy link
Owner

Makes sense to me! @750 thoughts on adding you as a collaborator to the repository? Would give you more freedom to manipulate it and publish new releases without me being a bottleneck.

@chipsenkbeil chipsenkbeil merged commit dd82d1a into chipsenkbeil:master Nov 30, 2024
@750
Copy link
Collaborator Author

750 commented Dec 1, 2024

@chipsenkbeil That would be nice (though I don't mind the bottleneck). I'm not sure if there's gonna be a lot of activity from me anytime soon, but why not

Thanks!

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