From: <va...@us...> - 2012-05-11 15:51:34
|
Revision: 15768 http://gate.svn.sourceforge.net/gate/?rev=15768&view=rev Author: valyt Date: 2012-05-11 15:51:27 +0000 (Fri, 11 May 2012) Log Message: ----------- Some sizes are large (stop giggling at the back!). Modified Paths: -------------- mimir/branches/mg4j-big/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java Modified: mimir/branches/mg4j-big/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java =================================================================== --- mimir/branches/mg4j-big/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java 2012-05-11 15:45:23 UTC (rev 15767) +++ mimir/branches/mg4j-big/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java 2012-05-11 15:51:27 UTC (rev 15768) @@ -392,7 +392,7 @@ */ @Override public long getDocumentsCount() { - if(allDocIdsCollected) return documentIds.size(); + if(allDocIdsCollected) return documentIds.size64(); else return -1; } @@ -401,7 +401,7 @@ */ @Override public long getDocumentsCurrentCount() { - return documentIds.size(); + return documentIds.size64(); } /* (non-Javadoc) @@ -563,7 +563,7 @@ else if (midVal < documentScore) end = mid - 1; else { // we found a doc with exactly the same score: scan to the right - while(documentsOrder.size() < mid && + while(documentsOrder.size64() < mid && documentScores.getDouble(documentsOrder.getLong(mid)) == documentScore){ mid++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |