Author: orbiter
Date: 2008-03-11 00:40:56 +0100 (Tue, 11 Mar 2008)
New Revision: 4549

Modified:
   trunk/source/de/anomic/plasma/plasmaSearchQuery.java
Log:
new method to compute search history IDs

Modified: trunk/source/de/anomic/plasma/plasmaSearchQuery.java
===================================================================
--- trunk/source/de/anomic/plasma/plasmaSearchQuery.java        2008-03-10 
23:28:05 UTC (rev 4548)
+++ trunk/source/de/anomic/plasma/plasmaSearchQuery.java        2008-03-10 
23:40:56 UTC (rev 4549)
@@ -288,9 +288,9 @@
     public String id(boolean anonymized) {
         // generate a string that identifies a search so results can be 
re-used in a cache
         if (anonymized) {
-            return anonymizedQueryHashes(this.queryHashes) + "-" + 
anonymizedQueryHashes(this.excludeHashes) + ":" + this.contentdom + "*" + 
this.ranking.toExternalString();
+            return anonymizedQueryHashes(this.queryHashes) + "-" + 
anonymizedQueryHashes(this.excludeHashes) + ":" + this.contentdom + "*" + 
plasmaCondenser.word2hash(this.ranking.toExternalString());
         } else {
-            return hashSet2hashString(this.queryHashes) + "-" + 
hashSet2hashString(this.excludeHashes) + ":" + this.contentdom + 
this.ranking.toExternalString();
+            return hashSet2hashString(this.queryHashes) + "-" + 
hashSet2hashString(this.excludeHashes) + ":" + this.contentdom + "*" + 
plasmaCondenser.word2hash(this.ranking.toExternalString());
         }
     }
     

_______________________________________________
YaCy-svn mailing list
YaCy-svn@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/yacy-svn

Antwort per Email an