Skip to content

Conversation

@icsy7867
Copy link

@icsy7867 icsy7867 commented Jan 6, 2023

I originally made another input on the List.vue, however I have applied my working changes to Search.vue instead. The only other major change I had to do, was to set the fuse threshold to 1.0 (This returns all results), and then use the more advanced queries to filter below.

This addition removes the search function from fuse, and simply modifies the data tables directly. This gives one the ability to search for a string, or using regex, each queryable field. For example:

location:^house|^garage
this would find all locations that begin with house OR garage.

Or a slightly more advanced query:
name:^Refrig|Documents$|cable$

image

While fuse does have some search features, I couldnt get them to quite work right. This might be due to the version of fuse.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant