Revision: 17334
http://sourceforge.net/p/gate/code/17334
Author: valyt
Date: 2014-02-19 08:30:41 +0000 (Wed, 19 Feb 2014)
Log Message:
-----------
OK, I give up. You cannot get partial results while the query is still running.
The users will just have the keep themselves entertained by looking at the
ever-increasing number of documents until they are all retrieved. Even if they
are not using any ranking.
Modified Paths:
--------------
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/server/GwtRpcService.groovy
Modified:
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/server/GwtRpcService.groovy
===================================================================
---
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/server/GwtRpcService.groovy
2014-02-18 17:04:36 UTC (rev 17333)
+++
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/server/GwtRpcService.groovy
2014-02-19 08:30:41 UTC (rev 17334)
@@ -97,7 +97,7 @@
ResultsData rData = new ResultsData(
resultsTotal:qRunner.getDocumentsCount(),
resultsPartial: qRunner.getDocumentsCurrentCount())
- if(firstDocumentRank >= 0) {
+ if(rData.resultsTotal > 0 && firstDocumentRank >= 0) {
// also obtain some documents data
List<DocumentData> documents = []
int maxRank = Math.min(firstDocumentRank + documentsCount,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs