I just pushed an update to lit with a revamped search engine.

You can test it at https://luvit.io/lit.html

There are 4 kinds of filters (tag, author, name, and search), each can have
multiple terms that are ORed together.  The filters themselves are ANDed
together.

The `tag`, `author`, and `name` filters require a prefix like
`author:creationix` or `name:msgpack`.  If there is no prefix, it's assumed
to
be a search term.

So `author:luvit` will show all packages by the luvit author.  But
`author:luvit
stream` will show all packages by luvit *and* containing the search term
`stream`.  Prefixed terms are exact matches, use `*` to allow wildcards.
The
unprefixed search term is full-text search in name, keywords, description,
and tags.

Also you can wrap terms in quotes to include spaces.  For example searching
for
`"blue apple"` is one term `blue apple` while `blue apple` is two terms
`blue`
and `apple`.

I don't like having both keywords and tags.  Should we encourage packages to
migrate towards "tags" or just use the "keywords" field internally for tag
searches?

There was one breaking change where the result "type" field used to be
either
"package" or "author" and is now "directory" or "file" depending on if the
package is a single file or a while tree.

-- 
You received this message because you are subscribed to the Google Groups 
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to