So I'm not sure why, but the URL is set to https://twitter.com/search?q=%40AggroTactics rather than https://twitter.com/search?q=AggroTactics. The first URL does a search with @AggroTactics rather than #AggroTactics. So I changed it on my local but it instead added the literal '@'... not sure where that is coming from. Not sure if that was intended... seems weird.
[nodebb-plugin-dbsearch] DB Search Plugin
-
NodeBB Plugin DB Search
A Plugin that let's users search posts and topics
Installation
npm install nodebb-plugin-dbsearch
More info at https://github.com/barisusakli/nodebb-plugin-dbsearch
Notes
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.
-
This post is deleted! -
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
/api/search/:searchterm
? -
@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;
{
"show_no_topics": "",
"show_no_posts": "",
"show_results": "",
"search_query": "this",
"posts": [],
"topics": [],
"post_matches": 0,
"topic_matches": 0
} -
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.