Limit search to name+description

This commit is contained in:
Stephen M. Coakley 2017-04-27 12:01:51 -05:00
parent 3c029f9ade
commit 8092fba290
No known key found for this signature in database
GPG Key ID: 91B59C18494C4FC0

View File

@ -73,7 +73,7 @@ function omf.index.query -d 'Query packages in the index'
type_matches = 1;
}
!text_matches && !/^#/ {
!text_matches && !/^#/ && $1 == "description" {
if (match(tolower($2), q_text)) {
text_matches = 1;
}