Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
reverted last commit (more testing needed)
orbiter10f5ec1040f9
diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.javaindex 44c9ab5f0..345abd311 100644--- a/htroot/CrawlProfileEditor_p.java+++ b/htroot/CrawlProfileEditor_p.java@@ -60,22 +60,23 @@ public class CrawlProfileEditor_p {private static final ArrayList <eentry> labels = new ArrayList<eentry>();static {- labels.add(new eentry(entry.NAME, "Name", true, eentry.STRING));- labels.add(new eentry(entry.START_URL, "Start URL", true, eentry.STRING));- labels.add(new eentry(entry.FILTER_MUSTMATCH, "General Filter", false, eentry.STRING));- labels.add(new eentry(entry.DEPTH, "General Depth", false, eentry.INTEGER));- labels.add(new eentry(entry.RECRAWL_IF_OLDER, "Recrawl If Older", false, eentry.INTEGER));- labels.add(new eentry(entry.DOM_FILTER_DEPTH, "Domain Filter Depth", false, eentry.INTEGER));- labels.add(new eentry(entry.DOM_MAX_PAGES, "Domain Max. Pages", false, eentry.INTEGER));- labels.add(new eentry(entry.CRAWLING_Q, "CrawlingQ / '?'-URLs", false, eentry.BOOLEAN));- labels.add(new eentry(entry.INDEX_TEXT, "Index Text", false, eentry.BOOLEAN));- labels.add(new eentry(entry.INDEX_MEDIA, "Index Media", false, eentry.BOOLEAN));- labels.add(new eentry(entry.STORE_HTCACHE, "Store in HTCache", false, eentry.BOOLEAN));- labels.add(new eentry(entry.STORE_TXCACHE, "Store in TXCache", false, eentry.BOOLEAN));- labels.add(new eentry(entry.REMOTE_INDEXING, "Remote Indexing", false, eentry.BOOLEAN));- labels.add(new eentry(entry.XSSTOPW, "Static stop-words", false, eentry.BOOLEAN));- labels.add(new eentry(entry.XDSTOPW, "Dynamic stop-words", false, eentry.BOOLEAN));- labels.add(new eentry(entry.XPSTOPW, "Parent stop-words", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.NAME, "Name", true, eentry.STRING));+ labels.add(new eentry(entry.START_URL, "Start URL", true, eentry.STRING));+ labels.add(new eentry(entry.FILTER_MUSTMATCH, "Must-Match Filter", false, eentry.STRING));+ labels.add(new eentry(entry.FILTER_MUSTNOTMATCH, "Must-Not-Match Filter", false, eentry.STRING));+ labels.add(new eentry(entry.DEPTH, "Crawl Depth", false, eentry.INTEGER));+ labels.add(new eentry(entry.RECRAWL_IF_OLDER, "Recrawl If Older", false, eentry.INTEGER));+ labels.add(new eentry(entry.DOM_FILTER_DEPTH, "Domain Filter Depth", false, eentry.INTEGER));+ labels.add(new eentry(entry.DOM_MAX_PAGES, "Domain Max. Pages", false, eentry.INTEGER));+ labels.add(new eentry(entry.CRAWLING_Q, "CrawlingQ / '?'-URLs", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.INDEX_TEXT, "Index Text", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.INDEX_MEDIA, "Index Media", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.STORE_HTCACHE, "Store in HTCache", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.STORE_TXCACHE, "Store in TXCache", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.REMOTE_INDEXING, "Remote Indexing", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.XSSTOPW, "Static stop-words", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.XDSTOPW, "Dynamic stop-words", false, eentry.BOOLEAN));+ labels.add(new eentry(entry.XPSTOPW, "Parent stop-words", false, eentry.BOOLEAN));}public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {diff --git a/htroot/CrawlStart_p.html b/htroot/CrawlStart_p.htmlindex 85bdb6357..99ae6f672 100644--- a/htroot/CrawlStart_p.html+++ b/htroot/CrawlStart_p.html@@ -116,7 +116,7 @@<tr valign="top" class="TableCellDark"><td><label for="mustnotmatch">Must-Not-Match Filter</label>:</td><td>- <input name="mustnotmatch" id="mustnotmatch" type="text" size="80" maxlength="100" value="#[mustnotmatch]#" />+ <input name="mustnotmatch" id="mustnotmatch" type="text" size="60" maxlength="100" value="#[mustnotmatch]#" /></td><td>This filter must not match to allow that the page is accepted for crawling.diff --git a/source/de/anomic/kelondro/kelondroChunkIterator.java b/source/de/anomic/kelondro/kelondroChunkIterator.javaindex a5c18609a..8800923e3 100644--- a/source/de/anomic/kelondro/kelondroChunkIterator.java+++ b/source/de/anomic/kelondro/kelondroChunkIterator.java@@ -24,6 +24,8 @@package de.anomic.kelondro;+import java.io.BufferedInputStream;+import java.io.DataInputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;@@ -32,9 +34,6 @@ import java.util.Iterator;import java.util.concurrent.ArrayBlockingQueue;import java.util.concurrent.BlockingQueue;import java.util.concurrent.Callable;-import java.util.concurrent.ExecutorService;-import java.util.concurrent.Executors;-import java.util.concurrent.Future;public class kelondroChunkIterator implements Iterator<byte[]> {@@ -50,9 +49,11 @@ public class kelondroChunkIterator implements Iterator<byte[]> {* @throws FileNotFoundException*/- /*+private final DataInputStream stream;private byte[] nextBytes;+ private int recordsize;+public kelondroChunkIterator(final File file, final int recordsize, final int chunksize) throws FileNotFoundException {assert (file.exists());assert file.length() % recordsize == 0;@@ -95,9 +96,9 @@ public class kelondroChunkIterator implements Iterator<byte[]> {public void remove() {throw new UnsupportedOperationException();}- */+ /*ExecutorService service = Executors.newFixedThreadPool(2);filechunkProducer producer;filechunkSlicer slicer;@@ -142,6 +143,7 @@ public class kelondroChunkIterator implements Iterator<byte[]> {public void remove() {throw new UnsupportedOperationException();}+ */private static class filechunkSlicer implements Callable<Integer> {