nixos-search icon indicating copy to clipboard operation
nixos-search copied to clipboard

problem narrowing down results of options

Open docteurklein opened this issue 2 years ago • 2 comments

Hello! I just discovered that ES is directly accessible publicly so I played a little with the query being sent out, and found out we explode each word to become its own wildcard query in a must block, possibly capping the selectivity of the query, thereby violating the readme:

The more characters are added to a search query the more narrow is search is and we should show less results.

I'd like if we could chose which strategy to employ, or even get rid of https://github.com/NixOS/nixos-search/blob/00f61f52aefe60b18059ec13201d9c94bdc04045/frontend/src/Search.elm#L1259-L1273 altogether?

Maybe this has been asked before, if that's the case, my apologies, I didn't find any related issue to this case. Thanks for the work!

EDIT: just found out #288 and and #279, but my issue still applies.

docteurklein avatar Oct 04 '23 15:10 docteurklein

So far as I can tell, there's no && syntax equivalent; Adding new items to the search always gives the results of both separate searches, and makes nix-search effectively useless compared to grep or even just browsing the github repo. Am I missing something, or is this the extent of the issue?

Dessix avatar Oct 15 '23 04:10 Dessix

Yes I think that's basically my issue. I'd like if we could have some kind of && operator to narrow things down.

docteurklein avatar Oct 15 '23 13:10 docteurklein