简体   繁体   中英

Sending "tekken+4:*" to `to_tsquery(?)` doesn't match the record with Name "Tekken 4"

I have a record with name equal to "Tekken 4" .

The search for "tekken+4:*" doesn't return any results.

The search for "seki:*" returns results "Sekiro" .

The search for "watch+dog:*" returns results "Watch Dogs: Legion" .

How can I fix this query so both queries return results.

"to_tsvector('english', name || ' ' || slug) @@ to_tsquery(?)"

I had to change my search to:

"tekken & 4:*"

Now all cases work as expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM