Revision: 14711
http://gate.svn.sourceforge.net/gate/?rev=14711&view=rev
Author: valyt
Date: 2011-12-09 11:45:56 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
Use the new default score constant when not doing ranking.
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
2011-12-09 11:45:14 UTC (rev 14710)
+++ mimir/trunk/mimir-core/src/gate/mimir/search/RankingQueryRunnerImpl.java
2011-12-09 11:45:56 UTC (rev 14711)
@@ -372,7 +372,7 @@
* @see gate.mimir.search.QueryRunner#getCurrentDocumentsCount()
*/
@Override
- public int getCurrentDocumentsCount() {
+ public int getDocumentsCurrentCount() {
return documentIds.size();
}
@@ -386,7 +386,9 @@
@Override
public double getDocumentScore(int rank) throws IndexOutOfBoundsException,
IOException {
- return documentScores.getDouble(getDocumentIndex(rank));
+ return (documentScores != null) ?
+ documentScores.getDouble(getDocumentIndex(rank)) :
+ DEFAULT_SCORE;
}
/* (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