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

Language support in Postgres #52

Open
PostMidnight opened this issue Apr 22, 2019 · 2 comments
Open

Language support in Postgres #52

PostMidnight opened this issue Apr 22, 2019 · 2 comments

Comments

@PostMidnight
Copy link

PostMidnight commented Apr 22, 2019

Hi Developers,

The plugin won't support any other languages but English when used in conjunction with Postgress.

My current setup: NodeBB latest master, and Postgres v10.2.

To reproduce: Set the index language in ACP and initiating indexing: that will crashes NodeBB.

The reason: postgres.js: line 75: note the function call had "language" spelled incorrectly.

Fixing the spelling mistake does not cure the issue. The revised code failed in line 81 of postgres.js
db.pool.query('DROP INDEX "idx__searchtopic__content"', next);

with err = Error: index "idx__searchtopic__content" does not exist at Connection.parseE.

Unfortunately, this issue pertains to the implementation of indexing in Postgress I know very little about.

Any help will be highly appreciated.

@barisusakli
Copy link
Owner

@BenLubar

@BenLubar
Copy link
Contributor

If you restart (as in, either of the buttons in the admin panel) your NodeBB forum it should recreate the index: https://github.com/barisusakli/nodebb-plugin-dbsearch/blob/master/lib/postgres.js#L23

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

No branches or pull requests

3 participants