Finally got this to work! It seems that the nodemailer plugin has a dependency on node v 6.0.0. As soon as I changed the dependency to a compatible version the problem was solved.
Hope this helps someone else facing the same issue.
A Plugin that let's users search posts and topics
npm install nodebb-plugin-dbsearch
After installation go to the plugin settings page and click re index to re index existing content. You only have to do this once, new content is indexed automatically.
Nice one. How about installing it here so we can all test it live.
Will probably get installed the next time we update.
Bummer! Bug-hunting time.
Shh, he seems to have deleted his post... therefore, there are no bugs.
After restarting my vps the settings page appeared but search results still return nothing.
... damnit, spoke too soon.
@sp4rkr4t you will have to click reindex in the admin page to reindex all content, it might take a while.
I clicked re-index and I got the two notifications that is was indexing and then that it was done, still no joy.
What is the output of
@baris sorry you've lost me there, what do you want me to do?
Oh also, the search icon colour doesn't seem to be matching my theme.
@sp4rkr4t with your browser go to
http://yoursite.com/api/search/<term you are searching> it should give you the return of the api.
Here you go;
Try searching for something more specific, if you are using redis as the database we use reds for search. Which probably removes words like 'the', 'this'.
even if you search on this page like for 'search' you don't get any results...
EDIT: ah, now it does work ^^
NodeBB code needs to be latest too.
It returns nothing no matter what search term I use. Will double check everything else is up to date.
EDIT: Yup working now, my nodebb was in need of updating.
This is a great first step for a search plugin. Any chance this is going to be extended to have a similar topic feature, ala Stack Overflow?
Would be nice to be able to click on the search results, and have them formatted nicely. right now I cant click on the Topic title in the list of results. Only the small 'posted' link on the right will take me to the topic.