Closed Alina-enni closed 2 years ago
The issue was here:
search = " " + search + " "
It made the query 'coldplay' become ' coldplay ' and that's why it could not find it :D I think it's fixed now, but only for single word search. I tried to do the same for the multi-word search, but it just printed out the same song tens of times, so I just left it as it is.
It seems to me that when you try searching with an artist name, e.g. "Coldplay", no search results are displayed. It's strange because the matching documents are correct and there should be 5 songs displayed. Will have to look into this.