You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm rebuilding my API to one generated with generator-rest (great work BTW), but I'm facing an issue.
I noticed that querying the API only works for documents posted to the endpoint generated by generator-rest. I suppose it calls mongoose-keywords to generate the keywords, so it will only find those.
Is there a way to generate the keywords for the 1800 documents I already have in my database, that were posted prior to using generator-rest?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The only solution that comes to my mind is performing a migration on your database data, generating keywords for the existing documents. You can probably use something like https://github.com/tj/node-migrate
Hi!
I'm rebuilding my API to one generated with generator-rest (great work BTW), but I'm facing an issue.
I noticed that querying the API only works for documents posted to the endpoint generated by generator-rest. I suppose it calls mongoose-keywords to generate the keywords, so it will only find those.
Is there a way to generate the keywords for the 1800 documents I already have in my database, that were posted prior to using generator-rest?
Thanks in advance!
The text was updated successfully, but these errors were encountered: