[nodebb-plugin-solr] Solr search plugin
-
It works fine on our http://nodebb.org.cn
-
Hi @Guiri, good question!
This plugin is closer to a traditional full-text search plugin you'd see in use on other sites. It's more powerful than a simple fulltext search, because we can do thing like word exclusions (e.g.
forum -NodeBB
), boosts (e.g.forum +punBB
), and can even sort relevancy better by ranking documents higher if the searched terms are closer together, or are sequential (e.g. A search forFarmer John
would rankThis is a topic about Farmer John
higher thanJohn is a Farmer
)The existing search plugin uses phonetics to determine matches, which would cause problems when things had the same phonetic sounds, but were completely different words. (e.g.
forum
andfarm
are very different, but have the same consonants). -
Some development notes re: Solr
The default configuration saves topic titles in
title_t
and post content indescription_t
. These are defined in the defaultschema.xml
shipped with Solr as:<dynamicField name="*_t" type="text_general" indexed="true" stored="true"/>
Setting
stored
tofalse
would decrease the index size (and increase search efficiency by a small amount), as the actual post content would not be saved on-disk or in-memory.Before, the index for this forum was about 7.5 MB. By setting stored to
false
, the index size is now 2.6 MB.Would look into further customisation of the plugin (so you can define your own fields in
schema.xml
if you'd like) for the next version... -
Awesome, thanks for the quick reply. Is there a min-version, (e.g., nodebb 0.5.0) that's required or can I install it on my 0.4.3? I didn't see a min-version of nodebb specified in https://github.com/julianlam/nodebb-plugin-solr/blob/master/package.json
-
Having issues with Solr on 0.6.0, even after the latest update. Is this a known issue or just me?
-
Why this plugin show only topic search data?
I see in Solr log, that it search for description_t and title_t. description_t returns 37 results, title_t - 0.
But user see nothing.2447575 [qtp507584865-14] INFO org.apache.solr.core.SolrCore – [collection1] webapp=/solr path=/select params={start=0&q=дизайн&qf=description_t^1&wt=json&rows=500&defType=dismax} hits=37 status=0 QTime=1
2447575 [qtp507584865-16] INFO org.apache.solr.core.SolrCore – [collection1] webapp=/solr path=/select params={start=0&q=дизайн&qf=title_t^1&wt=json&rows=500&defType=dismax} hits=0 status=0 QTime=1nodebb log:
9/2 12:42 [30014] - verbose: [plugin/solr] Search (topic) for "дизайн" returned 0 results
9/2 12:42 [30014] - verbose: [plugin/solr] Search (post) for "дизайн" returned 38 resultsNo search data for description_t shown · Issue #20 · julianlam/nodebb-plugin-solr
Why this plugin show only topic search data? I see in Solr log, that it search for description_t and title_t. description_t returns 37 results, title_t - 0. But user see nothing. 2447575 [qtp507584865-14] INFO org.apache.solr.core.SolrCo...
GitHub (github.com)
-
Updated to the latest Solr this morning and it returned zero results. We moved back to DBSearch and it worked fine, although the Regex in DBSearch is not nearly as nice as Solr. At least we have search again. Can't do any more testing with Solr until next week, so at the moment we are at a standstill there. But as DBSearch is working, it is not critical.
-
A little bit ago we uninstalled it and completely reinstalled and it started working. So Solr is working for us again (as are emoji.)
-
I tried it and it works fine with full words but its doesnt work with wilcards like *
Also if i have two topics one is "ball" and other is "balls", with bdsearch a query for "ball" will get the two topics as result but in solr only getting first one.
Do i meed to config something else?