mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
reverted json syntax for facet results to version from january
This commit is contained in:
parent
4cb4f67f38
commit
a08a3c5f29
|
@ -289,7 +289,7 @@ public class yacysearchtrailer {
|
||||||
}
|
}
|
||||||
|
|
||||||
// topics navigator
|
// topics navigator
|
||||||
final ScoreMap<String> topicNavigator = sb.index.connectedRWI() ? theSearch.getTopicNavigator(TOPWORDS_MAXCOUNT) : null;
|
final ScoreMap<String> topicNavigator = theSearch.getTopicNavigator(TOPWORDS_MAXCOUNT);
|
||||||
if (topicNavigator == null || topicNavigator.isEmpty()) {
|
if (topicNavigator == null || topicNavigator.isEmpty()) {
|
||||||
prop.put("nav-topics", "0");
|
prop.put("nav-topics", "0");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,17 +1,5 @@
|
||||||
"navigation": {#(nav-dates)#::
|
"navigation": [#(nav-dates)#::{
|
||||||
"dates": {
|
"facetname": "dates",
|
||||||
"displayname": "Filetype",
|
|
||||||
"type": "String",
|
|
||||||
"min": "0",
|
|
||||||
"max": "0",
|
|
||||||
"mean": "0",
|
|
||||||
"elements": [
|
|
||||||
#{element}#
|
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
|
||||||
#{/element}#
|
|
||||||
]
|
|
||||||
},#(/nav-dates)##(nav-filetypes)#::
|
|
||||||
"filetypes": {
|
|
||||||
"displayname": "Filetype",
|
"displayname": "Filetype",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -22,8 +10,20 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#(/nav-filetypes)##(nav-protocols)#::
|
},#(/nav-dates)##(nav-filetypes)#::{
|
||||||
"protocols": {
|
"facetname": "filetypes",
|
||||||
|
"displayname": "Filetype",
|
||||||
|
"type": "String",
|
||||||
|
"min": "0",
|
||||||
|
"max": "0",
|
||||||
|
"mean": "0",
|
||||||
|
"elements": [
|
||||||
|
#{element}#
|
||||||
|
{"name": "#[name]#", "count": "#[count]#"}#(nl)#::,#(/nl)#
|
||||||
|
#{/element}#
|
||||||
|
]
|
||||||
|
},#(/nav-filetypes)##(nav-protocols)#::{
|
||||||
|
"facetname": "protocols",
|
||||||
"displayname": "Protocol",
|
"displayname": "Protocol",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#(/nav-protocols)##(nav-domains)#::
|
},#(/nav-protocols)##(nav-domains)#::{
|
||||||
"domains": {
|
"facetname": "domains",
|
||||||
"displayname": "Domains",
|
"displayname": "Domains",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -46,8 +46,8 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#(/nav-domains)##(nav-namespace)#::
|
},#(/nav-domains)##(nav-namespace)#::{
|
||||||
"namespace": {
|
"facetname": "namespace",
|
||||||
"displayname": "Name Space",
|
"displayname": "Name Space",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -58,8 +58,8 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#(/nav-namespace)##(nav-authors)#::
|
},#(/nav-namespace)##(nav-authors)#::{
|
||||||
"authors": {
|
"facetname": "authors",
|
||||||
"displayname": "Authors",
|
"displayname": "Authors",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#(/nav-authors)##(nav-collections)#::
|
},#(/nav-authors)##(nav-collections)#::{
|
||||||
"collections": {
|
"facetname": "collections",
|
||||||
"displayname": "Collections",
|
"displayname": "Collections",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -82,8 +82,8 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#(/nav-collections)##{nav-vocabulary}#
|
},#(/nav-collections)##{nav-vocabulary}#{
|
||||||
"#[navname]#": {
|
"facetname": "#[navname]#",
|
||||||
"displayname": "#[navname]#",
|
"displayname": "#[navname]#",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -94,8 +94,8 @@
|
||||||
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
{"name": "#[name]#", "count": "#[count]#", "modifier": "#[modifier]#", "url": "#[url]#"}#(nl)#::,#(/nl)#
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
},#{/nav-vocabulary}##(nav-topics)#"topics": {}::
|
},#{/nav-vocabulary}##(nav-topics)#{}::{
|
||||||
"topics": {
|
"facetname": "topics",
|
||||||
"displayname": "Topics",
|
"displayname": "Topics",
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"min": "0",
|
"min": "0",
|
||||||
|
@ -107,5 +107,5 @@
|
||||||
#{/element}#
|
#{/element}#
|
||||||
]
|
]
|
||||||
}#(/nav-topics)#
|
}#(/nav-topics)#
|
||||||
},
|
],
|
||||||
"totalResults": "#[num-results_totalcount]#"
|
"totalResults": "#[num-results_totalcount]#"
|
Loading…
Reference in New Issue
Block a user