Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search with working regex. #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant