angular-filter
angular-filter copied to clipboard
fuzzyBy - add support for multiple keys
What do you mean?
change it to work like filterBy will make it more robust.
Would love this. Currently I can get away with just using fuzzy but I don't need to search data such as email. For example in the following I only want to search first_name, last_name, and company. However I don't care about results from email and bio.
[
{
"first_name": "Rafael",
"last_name" : "Gomez",
"email" : "[email protected]",
"company" : "Libero Nec Ligula LLC",
"bio" : "Lorem"
},
{
"first_name": "Ivor",
"last_name" : "Clayton",
"email" : "[email protected]",
"company" : "Dui Consulting",
"bio" : "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sed"
},
{
"first_name": "Armando",
"last_name" : "Dotson",
"email" : "[email protected]",
"company" : "Integer Inc.",
"bio" : "Lorem ipsum"
}
]
+1
+1, would be great
+1
Any update on this? It's been 3 years.
+1
An easy workaround for this is to combine it with the searchField filter, for example:
collection | searchField: 'property1': 'property2' | fuzzyBy: 'searchField': search
Obviously it would be better if fuzzyBy could just accept multiple properties though.