Alina-enni / lingdiggers

Project for the Building NLP Applications course
0 stars 0 forks source link

Problem when searching for artist name #29

Closed Alina-enni closed 2 years ago

Alina-enni commented 2 years ago

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.

Screenshot 2022-03-11 at 0 35 28
miglamigla commented 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.