-
Notifications
You must be signed in to change notification settings - Fork 732
Description
Describe the problem your feature will solve.
Currently any advanced searches via "search all" just check that the input type is acceptable for the present fields (i.e. type == date && w2utils.isDate(value)). This is fine for all the search types, but I think types enum and list should not be included when building the advanced search request. This is because enums and lists have specific items to search for, and the backend handles that accordingly. Also the user would need to enter the full enum item in the box to get the correct output, which may defeat the purpose of it.
Describe the solution you'd like
I'd be fine at least an option to turn it off, like how there is a searches.simple:bool property, there could be a searches.searchAll:bool property that excludes that specific search from being filled out when using the "all" search bar.
Describe alternatives you've considered
I've also thought about just removing the line below, but adding an option might be better (and would be backwards compatible):
Line 2162 in 2132b8d
| || (search.type == 'enum' && w2utils.isAlphaNumeric(value)) || (search.type == 'list' && w2utils.isAlphaNumeric(value)) |