jwjacobson / jazztunes

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

Nickname search returns empty queryset #178

Closed jwjacobson closed 6 months ago

jwjacobson commented 6 months ago

It's pretty mysterious!

Current approach is as follows:

  1. Loop through search terms and do a nickname search (composer only); if there's a match, add results to a set.
  2. Loop through search terms searching each term, add results to a set
  3. Combine the two sets into one with union operation
  4. Create the final queryset with intersection operation on unpacked set from (3) above

Steps 1 and 2 succeed but step 3 results in an empty set...

jwjacobson commented 6 months ago

Fixed with most recent PR

bbelderbos commented 6 months ago

💪

Cool, would be nice to write some tests for the increasingly complex search functionality (after deploy)

bbelderbos commented 6 months ago

You closed this issue, so I guess no longer an issue?