1 ///////////////////////////////////////////////////////////////////////////// 2 // Copyright (c) 2009-2014 Alan Wright. All rights reserved. 3 // Distributable under the terms of either the Apache License (Version 2.0) 4 // or the GNU Lesser General Public License. 5 ///////////////////////////////////////////////////////////////////////////// 6 7 #include "LuceneInc.h" 8 #include "ScoreDoc.h" 9 10 namespace Lucene { 11 ScoreDoc(int32_t doc,double score)12ScoreDoc::ScoreDoc(int32_t doc, double score) { 13 this->doc = doc; 14 this->score = score; 15 } 16 ~ScoreDoc()17ScoreDoc::~ScoreDoc() { 18 } 19 toString()20String ScoreDoc::toString() { 21 StringStream buffer; 22 buffer << L"doc=" << doc << L" score=" << score; 23 return buffer.str(); 24 } 25 26 } 27