From: <va...@us...> - 2012-05-09 11:05:27
|
Revision: 15752 http://gate.svn.sourceforge.net/gate/?rev=15752&view=rev Author: valyt Date: 2012-05-09 11:05:16 +0000 (Wed, 09 May 2012) Log Message: ----------- More precise error message. Modified Paths: -------------- mimir/trunk/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java Modified: mimir/trunk/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java 2012-05-09 10:53:38 UTC (rev 15751) +++ mimir/trunk/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java 2012-05-09 11:05:16 UTC (rev 15752) @@ -441,9 +441,9 @@ */ protected int getDocumentIndex(int rank) throws IOException, IndexOutOfBoundsException { - int maxIndex = documentIds.size(); - if(rank >= maxIndex) throw new IndexOutOfBoundsException( - "Document index too large (" + rank + " > " + maxIndex + "."); + int maxRank = documentIds.size(); + if(rank >= maxRank) throw new IndexOutOfBoundsException( + "Document rank too large (" + rank + " > " + maxRank + "."); if(documentsOrder != null) { // we're in ranking mode if(rank >= documentsOrder.size()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |