angeloashmore / react-use-flexsearch

React hook to search a FlexSearch index
99 stars 16 forks source link

Get all records with tag #32

Open davidpaulsson opened 2 years ago

davidpaulsson commented 2 years ago

I'm trying to figure out how to get all records with a certain tag, can I pass tags to the options? can I leave query as null or undefined? I can't get it to work 😩

I'm thinking something like

const results = useFlexSearch(undefined, index, store, {
  tag: 'Furniture > Sofas and poufs',
});