Metron-Project / metron

Django website for a comic book database
https://metron.cloud/
GNU General Public License v3.0
90 stars 7 forks source link

Fuzzy/Wildcard Search #65

Closed Buried-In-Code closed 3 years ago

Buried-In-Code commented 3 years ago

Is your feature request related to a problem? Please describe. The Website and API produce different search results. If you search /api/series?name=Spider-Man you'll get 2 results but search Spider-Man via the Website and you get 51 Series.

Describe the solution you'd like Option to make it fuzzy search by passing in a param or adding a wild card. If there is a wildcard search it's not documented in the Schema

Describe alternatives you've considered I've tried * and % wildcards neither work.

Additional context Add any other context or screenshots about the feature request here.

bpepple commented 3 years ago

Django Rest Framework doesn't use wildcards, but to fix this I just need to create a Series filter (like the Issues filter) that uses icontains instead of the default lookup expression which is exact. Most likely need to do the same thing for the other resources (ie. Arcs, Characters, etc.)

bpepple commented 3 years ago

Thanks for the bug report!