Bringing tree up to date.
[galago.git] / cpp / galago / include / DocumentOrderedBinnedRetrieval.hpp
blob0bd6c7ee7d8e8f34d6b15340bd5278efb563a99d
2 //
3 // DocumentOrderedBinnedRetrieval
4 //
5 // 15 October 2007 -- tds
6 //
7 // BSD License (http://galagosearch.org/license)
8 //
10 #ifndef GALAGO_DOCUMENTORDEREDBINNEDRETRIEVAL_HPP
11 #define GALAGO_DOCUMENTORDEREDBINNEDRETRIEVAL_HPP
13 #include "DocumentOrderedBinnedIndex.hpp"
14 #include "DocumentOrderedBinnedIterator.hpp"
15 #include "indri/ScoredExtentResult.hpp"
16 #include "Query.hpp"
17 #include "Retrieval.hpp"
18 #include <vector>
19 #include <queue>
21 class DocumentOrderedBinnedRetrieval : public Retrieval {
22 private:
23 DocumentOrderedBinnedIndex _index;
24 std::vector<DocumentOrderedBinnedIterator*> getIterators( const std::vector<QueryTerm>& terms );
26 public:
27 std::vector<indri::api::ScoredExtentResult> runQuery( const std::vector<QueryTerm>& query,
28 int requested,
29 int threshold );
30 std::string getDocument( int document );
32 void openRead( const std::string& path );
33 void close();
36 #endif // GALAGO_DOCUMENTORDEREDBINNEDRETRIEVAL_HPP