Revision: 14716
          http://gate.svn.sourceforge.net/gate/?rev=14716&view=rev
Author:   valyt
Date:     2011-12-09 16:36:45 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
A few small changes.

Modified Paths:
--------------
    mimir/trunk/mimir-client/src/gate/mimir/search/RemoteQueryRunner.java

Modified: mimir/trunk/mimir-client/src/gate/mimir/search/RemoteQueryRunner.java
===================================================================
--- mimir/trunk/mimir-client/src/gate/mimir/search/RemoteQueryRunner.java       
2011-12-09 16:35:22 UTC (rev 14715)
+++ mimir/trunk/mimir-client/src/gate/mimir/search/RemoteQueryRunner.java       
2011-12-09 16:36:45 UTC (rev 14716)
@@ -224,7 +224,7 @@
     }
     
     //an example URL looks like this:
-    
//http://localhost:8080/mimir/remote/bf25398f-f087-4224-bfa6-c2ef00399c04/search/hitCountBin?queryId=c4da799e-9ca2-46ae-8ded-30bdc37ad607
+    
//http://localhost:8080/mimir/bf25398f-f087-4224-bfa6-c2ef00399c04/search/hitCountBin?queryId=c4da799e-9ca2-46ae-8ded-30bdc37ad607
     StringBuilder str = new StringBuilder(remoteUrl);
     str.append(SERVICE_SEARCH);
     str.append('/');
@@ -249,7 +249,7 @@
       try {
         docData = (DocumentData)webUtils.getObject(
             getActionBaseUrl(ACTION_DOC_DATA_BIN),
-            "queryId", queryId,
+            "queryId",  URLEncoder.encode(queryId, "UTF-8"),
             "documentRank", Integer.toString(rank));
         documentCache.putAndMoveToFirst(rank, docData);
         if(documentCache.size() > DOCUMENT_CACHE_SIZE) {
@@ -288,8 +288,9 @@
   @Override
   public int getDocumentID(int rank) throws IndexOutOfBoundsException,
           IOException {
-    return webUtils.getInt(getActionBaseUrl(ACTION_DOC_ID_BIN), "queryId", 
-      URLEncoder.encode(queryId, "UTF-8"));
+    return webUtils.getInt(getActionBaseUrl(ACTION_DOC_ID_BIN), 
+            "queryId", URLEncoder.encode(queryId, "UTF-8"), 
+            "documentRank", Integer.toString(rank));
   }
 
   /* (non-Javadoc)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to