krisk / Fuse

Lightweight fuzzy-search, in JavaScript

Home Page:https://fusejs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow search restriction in query, like github search (<field>:<subquery>)

m42e opened this issue · comments

Description

Limit the search of tokens to fields.

Describe the solution you'd like

If the query contains an element like: title:old the search for old should be limited to the field with the key 'title'.
Addtitionally, the configuration for the keys should have a possibility to assign a shortname to the key.

Describe alternatives you've considered

  • Manually parse the query and build a logical search expression: this is missing an 'any' in the search, requires to implement an extra parser.

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days