git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1461 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent b946e28e61
commit f2b18cede9

@ -163,6 +163,7 @@ public final class plasmaSearchEvent extends Thread implements Runnable {
// retrieve entities that belong to the hashes // retrieve entities that belong to the hashes
profileLocal.startTimer(); profileLocal.startTimer();
Set entities = wordIndex.getEntities(query.queryHashes, true, true, profileLocal.getTargetTime(plasmaSearchProfile.PROCESS_COLLECTION)); Set entities = wordIndex.getEntities(query.queryHashes, true, true, profileLocal.getTargetTime(plasmaSearchProfile.PROCESS_COLLECTION));
if (entities.size() < query.size()) entities = null; // prevent that only a subset is returned
profileLocal.setYieldTime(plasmaSearchProfile.PROCESS_COLLECTION); profileLocal.setYieldTime(plasmaSearchProfile.PROCESS_COLLECTION);
profileLocal.setYieldCount(plasmaSearchProfile.PROCESS_COLLECTION, (entities == null) ? 0 : entities.size()); profileLocal.setYieldCount(plasmaSearchProfile.PROCESS_COLLECTION, (entities == null) ? 0 : entities.size());

@ -194,7 +194,7 @@ public final class plasmaWordIndex {
while (i.hasNext()) { while (i.hasNext()) {
// check time // check time
remaining = maxTime - (System.currentTimeMillis() - start); remaining = maxTime - (System.currentTimeMillis() - start);
if ((maxTime > 0) && (remaining <= 0)) break; //if ((maxTime > 0) && (remaining <= 0)) break;
// get next hash: // get next hash:
singleHash = (String) i.next(); singleHash = (String) i.next();

Loading…
Cancel
Save