Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search error: failed to fetch count: pq: syntax error at or near "AGAINST" (500) #470

Closed
ginuerzh opened this issue Aug 17, 2022 · 3 comments · Fixed by #494
Closed

Search error: failed to fetch count: pq: syntax error at or near "AGAINST" (500) #470

ginuerzh opened this issue Aug 17, 2022 · 3 comments · Fixed by #494
Milestone

Comments

@ginuerzh
Copy link

Version:
ghcr.io/go-shiori/shiori:v1.5.3-6-g3deeda7
postgres:14.5-alpine3.16

log:

time="2022-08-17T05:14:11Z" level=warning msg="GET /api/bookmarks?keyword=ndt&tags=&exclude=&page=1" proto=HTTP/1.1 remote="10.42.1.25:45580" reqlen=0 size=61 status=500
2022-08-17 05:14:11.273 UTC [7045] ERROR:  syntax error at or near "AGAINST" at character 101
2022-08-17 05:14:11.273 UTC [7045] STATEMENT:  SELECT COUNT(id) FROM bookmark WHERE TRUE AND (
				url LIKE $1 OR
				MATCH(title, excerpt, content) AGAINST ($2 IN BOOLEAN MODE)
			)
@stale
Copy link

stale bot commented Sep 16, 2022

This issue has been automatically marked as stale because it has not had any activity for quite some time.
It will be closed if no further activity occurs.
Thank you for your contributions.

@stale stale bot added the tag:stale label Sep 16, 2022
@javierfuentesm
Copy link

I have the same issue @ginuerzh did you find a way to fix it ?

@stale stale bot removed the tag:stale label Sep 19, 2022
@Polarolouis
Copy link

Same issue here

Postgres docker logs :

shiori-postgres  | 2022-09-21 12:14:51.752 CEST [528] STATEMENT:  SELECT COUNT(id) FROM bookmark WHERE TRUE AND (
shiori-postgres  |                              url LIKE $1 OR
shiori-postgres  |                              MATCH(title, excerpt, content) AGAINST ($2 IN BOOLEAN MODE)
shiori-postgres  |                      )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants