mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Apply JS resort only when currently relevant : p2p text search
This commit is contained in:
parent
4e3c928d31
commit
d00a35576c
|
@ -828,7 +828,9 @@ public class yacysearch {
|
|||
prop.put("num-results_globalresults_remoteIndexCount", Formatter.number(theSearch.remote_rwi_available.get() + theSearch.remote_solr_available.get(), true));
|
||||
prop.put("num-results_globalresults_remotePeerCount", Formatter.number(theSearch.remote_rwi_peerCount.get() + theSearch.remote_solr_peerCount.get(), true));
|
||||
|
||||
final boolean jsResort = sb.getConfigBool(SwitchboardConstants.SEARCH_JS_RESORT, SwitchboardConstants.SEARCH_JS_RESORT_DEFAULT);
|
||||
final boolean jsResort = global
|
||||
&& (contentdom == ContentDomain.ALL || contentdom == ContentDomain.TEXT) // For now JavaScript resorting can only be applied for text search
|
||||
&& sb.getConfigBool(SwitchboardConstants.SEARCH_JS_RESORT, SwitchboardConstants.SEARCH_JS_RESORT_DEFAULT);
|
||||
prop.put("jsResort", jsResort);
|
||||
prop.put("num-results_jsResort", jsResort);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user