summaryrefslogtreecommitdiff
path: root/htroot/js
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2015-08-10 14:27:44 +0200
committerMichael Peter Christen <mc@yacy.net>2015-08-10 14:27:44 +0200
commitdf3314ac1a15f1f78f1e9c3601b85ac28c42915d (patch)
treed92590578d116920845eba2586c605df6447a8ef /htroot/js
parentdbbad23e120183342346d76b489d5356027742ae (diff)
added a new facet type based on a probabilistic classifier using
bayesian filters. This can be used to classify documents during indexing-time using a pre-definied bayesian filter. New wordings: - a context is a class where different categories are possible. The context name is equal to a facet name. - a category is a facet type within a facet navigation. Each context must have several categories, at least one custom name (things you want to discover) and one with the exact name "negative". To use this, you must do: - for each context, you must create a directory within DATA/CLASSIFICATION with the name of the context (the facet name) - within each context directory, you must create text files with one document each per line for every categroy. One of these categories MUST have the name 'negative.txt'. Then, each new document is classified to match within one of the given categories for each context.
Diffstat (limited to 'htroot/js')
-rw-r--r--htroot/js/yacysearch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js
index c3994e009..413eabf58 100644
--- a/htroot/js/yacysearch.js
+++ b/htroot/js/yacysearch.js
@@ -52,8 +52,8 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS
resnav += "\">&laquo;</a></li>";
}
- numberofpages = Math.floor(Math.min(10, 1 + ((totalcount.replace(/\./g,'') - 1) / itemsperpage)));
- if (!numberofpages) numberofpages = 10;
+ numberofpages = Math.floor(Math.min(9, 1 + ((totalcount.replace(/\./g,'') - 1) / itemsperpage)));
+ if (!numberofpages) numberofpages = 9;
for (i = 0; i < numberofpages; i++) {
if (i == thispage) {
resnav += "<li class=\"active\"><a href=\"#\">";