incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

Search multiple tags with no results

Open erasewu opened this issue 3 years ago • 9 comments

Describe the bug Without keywords when searching using [tag] prompt, there's no results. This is related with issue #136 .

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Search'
  2. Input '[tag]'
  3. No results
  4. Input '[tag]keywords'
  5. Have results

Expected behavior Can show all results without keywords when searching.

Screenshots If applicable, add screenshots to help explain your problem. image image image image

Platform (please complete the following information):

  • Device: Desktop
  • OS: macOS
  • Browser: Chrome
  • Version: 1.0.1

erasewu avatar Dec 24 '22 08:12 erasewu

It looks like your question don't have the tag "bug". You can see our demo here and there.

fenbox avatar Dec 24 '22 10:12 fenbox

Hi @fenbox , I'm pretty sure the question have the tags. screenshot attached below. image

erasewu avatar Dec 24 '22 10:12 erasewu

I try to search [bug][test] image

No result image

but with a keyword 1224, it works fine. image

erasewu avatar Dec 24 '22 10:12 erasewu

Excuse me, are you sure your program version is 1.0.1? I can't reappear it in my local environment. I review the code of version 1.0.1, the fixed code is included.

https://github.com/answerdev/answer/commit/7e8906ebb1201455a18403654510f16f01d34da8

kumfo avatar Dec 29 '22 06:12 kumfo

image @kumfo sure it's 1.0.1, I'm using sqlite database for the testing.

erasewu avatar Dec 29 '22 06:12 erasewu

@erasewu Thank you, Maybe the sqlite not support this complex SQL query. I will try it now.

kumfo avatar Dec 29 '22 07:12 kumfo

With explicit keyword, it works fine. Only without keyword, it has no result.

erasewu avatar Dec 29 '22 08:12 erasewu

It will be fixed in the next version, it's a sqlite query bug.

@erasewu

kumfo avatar Dec 29 '22 15:12 kumfo

thanks for the feedback, waiting for the next version.

erasewu avatar Dec 29 '22 15:12 erasewu