apaleslimghost / almanac

The tabletop RPG sandbox campaign web app
https://almanac.wiki
GNU Affero General Public License v3.0
6 stars 2 forks source link

rich search syntax #138

Open apaleslimghost opened 5 years ago

apaleslimghost commented 5 years ago

something like type:quest completed:false broken crown translating to a query {type: 'quest', completed: false, {$text: {$search: 'broken crown'}}} roughly speaking. how to parse this there must be a library

rowanmanning commented 5 years ago

I found this, seems to do what you want and has a few nice features (like ranges): https://www.npmjs.com/package/search-query-parser

apaleslimghost commented 5 years ago

!!! that's exactly what i wanted