jwjacobson / jazztunes

a jazz repertoire management app
https://jazztunes.org
GNU General Public License v3.0
3 stars 1 forks source link

Add support for multiple terms to basic search #95

Closed jwjacobson closed 8 months ago

jwjacobson commented 8 months ago

The currently existing search works great for single terms but not for multiple. For example if you search "Parker" you get the three parker tunes in the database. Ideally if you search "Parker f" it should get you the two tunes with F in the keys (along with any of his tunes that might have an F in the title).

So the logic would be: search as written: "parker f" split into: "parker" "f" The search is run with both these terms connected by an "and", i.e. return items matching parker and f.

bbelderbos commented 8 months ago

Interesting problem, so will you split Parker and f with a .split() in the view and OR search them? Or is it here where the user would need to start using some meta language like OR or pipe (|)?

Also quoted "parker f" it should search for exactly that string right?

jwjacobson commented 8 months ago

I was just using the quotation marks to denote a string rather than as part of the search