diff --git a/htroot/HostBrowser.java b/htroot/HostBrowser.java index a651759be..522b2d7b4 100644 --- a/htroot/HostBrowser.java +++ b/htroot/HostBrowser.java @@ -260,7 +260,7 @@ public class HostBrowser { //how many documents per crawldepth_i; get crawldepth_i facet for host ArrayList ff = new ArrayList<>(); for (CollectionSchema csf: CollectionSchema.values()) { - if (csf.getType() != SolrType.num_integer || csf.isMultiValued()) continue; + if ((csf.getType() != SolrType.num_integer && csf.getType() != SolrType.num_long) || csf.isMultiValued()) continue; String facetfield = csf.getSolrFieldName(); if (!fulltext.getDefaultConfiguration().contains(facetfield)) continue; ff.add(csf.getSolrFieldName()); @@ -271,10 +271,10 @@ public class HostBrowser { for (String facetfield: facetfields) { ReversibleScoreMap facetfieldmap = facets.get(facetfield); if (facetfieldmap.size() == 0) continue; - TreeMap statMap = new TreeMap<>(); - for (String k: facetfieldmap) statMap.put(Integer.parseInt(k), facetfieldmap.get(k)); + TreeMap statMap = new TreeMap<>(); + for (String k: facetfieldmap) statMap.put(Long.parseLong(k), facetfieldmap.get(k)); prop.put("hostanalysis_facets_" + fc + "_facetname", facetfield); - int c = 0; for (Entry entry: statMap.entrySet()) { + int c = 0; for (Entry entry: statMap.entrySet()) { prop.put("hostanalysis_facets_" + fc + "_facet_" + c + "_key", entry.getKey()); prop.put("hostanalysis_facets_" + fc + "_facet_" + c + "_count", entry.getValue()); prop.put("hostanalysis_facets_" + fc + "_facet_" + c + "_a", "http://localhost:" + sb.getConfigInt("port", 8090) + "/solr/collection1/select?q=host_s:" + host + " AND " + facetfield + ":" + entry.getKey() + "&defType=edismax&start=0&rows=1000&fl=sku,crawldepth_i"); diff --git a/source/net/yacy/cora/federate/solr/logic/Negation.java b/source/net/yacy/cora/federate/solr/logic/Negation.java index 605f7c850..5042342b1 100644 --- a/source/net/yacy/cora/federate/solr/logic/Negation.java +++ b/source/net/yacy/cora/federate/solr/logic/Negation.java @@ -65,7 +65,7 @@ public class Negation extends AbstractTerm implements Term { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append('-').append(this.term.toString()); + sb.append('(').append('-').append(this.term.toString()).append(')'); return sb.toString(); } diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index 37453486c..efb244d2b 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -1511,7 +1511,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri String query = con.toString(); SolrDocumentList docsAkk; try { - docsAkk = segment.fulltext().getDefaultConnector().getDocumentListByQuery(query, null, 0, 200, + docsAkk = segment.fulltext().getDefaultConnector().getDocumentListByQuery(query, null, 0, 1000, CollectionSchema.id.getSolrFieldName(), CollectionSchema.exact_signature_l.getSolrFieldName(), CollectionSchema.fuzzy_signature_l.getSolrFieldName()); } catch (final IOException e) { ConcurrentLog.logException(e);