Skip to content

Conversation

@slatian
Copy link
Contributor

@slatian slatian commented Dec 3, 2022

Adds support some selectors needed for more advanced searches like

  • -site: to exclude sites
  • lang: to only search for pages that have a given language tag prefix
  • rank:count and rank:score to choose a ranking algorithm (also exposed as url parameter)

Note: #13 is the same PR without the rank selector

…icult to cause a DOS condition.

(the go http package by default limits the header length to 1 Megabyte, which is great at preventing someone from causing trpuble at the http layer, but doesn't work too well when there is a pretty expensive search going on in the background)
@cblgh
Copy link
Owner

cblgh commented Dec 6, 2022

I think it's better to not expose this internal complexity, and instead if the search ranking is not providing the best results: try to improve that rather than rely on arcane knowledge of using rank:score or rank:count. Really appreciate that you broke this out of #13!

Maybe we'll come back to the idea, but right now I'm more than pleased to have -site: and lang: :~

@cblgh cblgh closed this Dec 6, 2022
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