64 std::unique_ptr<JASS::deserialised_jass_v1::segment_header[]> segment_order;
161 JASS_ERROR load_index(
size_t index_version,
const std::string &directory =
"",
bool verbose =
false);
216 accumulator_manager = name;
352 JASS_ERROR search(std::vector<JASS_anytime_thread_result> &output, std::vector<JASS_anytime_query> &query_list,
size_t thread_count);
364 std::vector<JASS_anytime_thread_result>
threaded_search(std::vector<std::string> &query_list,
size_t thread_count);
Runtime statistics for the anytime search engine.
Definition: JASS_anytime_stats.h:22
JASS_ERROR set_postings_to_process_proportion(double percent)
Set the number of postings to process as a proportion of the number of documents in the collection...
Definition: JASS_anytime_api.cpp:142
JASS_ERROR set_postings_to_process(size_t count)
Set the number of postings to process as an absolute number.
Definition: JASS_anytime_api.cpp:167
JASS::parser_query::parser_type which_query_parser
Use the simple ASCII parser or the regular query parser.
Definition: JASS_anytime_api.h:73
thread_data & get_thread_local_data(size_t thread_number)
Return the expensive-to-initialise thread local data that has already been allocated on index load...
Definition: JASS_anytime_api.cpp:59
JASS_ERROR set_postings_to_process_relative(double percent)
Set the number of postings to process as a proportion of the number of postings for this query...
Definition: JASS_anytime_api.cpp:156
Definition: JASS_anytime_api.h:61
parser_type
Which parser to use.
Definition: parser_query.h:49
Management of top-k rsv limiting.
JASS_ERROR use_ascii_parser(void)
Use the query parser that seperates tokens on whitespace along (this method is not normally needed)...
Definition: JASS_anytime_api.cpp:278
Completed successfully without error.
Definition: JASS_anytime_api.h:34
size_t top_k
The number of documents we want in the results list.
Definition: JASS_anytime_api.h:72
double relative_postings_to_process
If not 1 then then this is the proportion of this query's postings that should be processed...
Definition: JASS_anytime_api.h:71
JASS_ERROR
Definition: JASS_anytime_api.h:31
Load and deserialise a JASS v2 index.
Everything necessary to process a query. Subclassed in order to get add_rsv()
JASS_ERROR load_index(size_t index_version, const std::string &directory="", bool verbose=false)
Load a JASS index from the given directory.
Definition: JASS_anytime_api.cpp:91
size_t postings_to_process
The maximunm number of postings to process.
Definition: JASS_anytime_api.h:70
size_t accumulator_width
Width of the accumulator array.
Definition: JASS_anytime_api.h:74
Load and deserialise a JASS v1 index.
JASS_anytime_stats stats
Stats for this "session".
Definition: JASS_anytime_api.h:75
Definition: JASS_anytime_result.h:23
The API to JASS's anytime seach engine.
Definition: JASS_anytime_api.h:50
std::string get_encoding_scheme_name(void)
Return the name of the compression algorithm used on this index.
Definition: JASS_anytime_api.cpp:248
int32_t get_encoding_scheme_d(void)
Return the d-gap value used in this index.
Definition: JASS_anytime_api.cpp:263
The results of a single thread in the Anytime engine.
virtual ~JASS_anytime_api()
Destructor.
Definition: JASS_anytime_api.cpp:50
A query object - used to facilitate parallel query resolution.
Results from a single thread of execution in parallel search.
Definition: JASS_anytime_thread_result.h:26
uint32_t get_postings_to_process(void)
Return the current maimum number of postings to process value. This might be very large...
Definition: JASS_anytime_api.cpp:178
std::string accumulator_manager
The name of the accumulator manager.
Definition: JASS_anytime_api.h:77
void set_accumulator_manager(const std::string &name)
Set the name of the accumulator manager to use.
Definition: JASS_anytime_api.h:214
static constexpr size_t MAX_QUANTUM
The maximum number of segments in a query.
Definition: JASS_anytime_api.h:53
top-k is larger than the system-wide maximum top-k value (or the accumulator width is too large) ...
Definition: JASS_anytime_api.h:38
An alias for JASS_anytime_api.
Definition: JASS_anytime_api.h:375
The index must be loaded before this operation can occur.
Definition: JASS_anytime_api.h:33
Attempt to load an index when an index has alrady been loaded.
Definition: JASS_anytime_api.h:39
The index version number specified is not supported.
Definition: JASS_anytime_api.h:35
static constexpr size_t MAX_TERMS_PER_QUERY
The maximum number of terms in a query.
Definition: JASS_anytime_api.h:54
JASS::deserialised_jass_v1 * index
The index.
Definition: JASS_anytime_api.h:69
JASS_ERROR use_query_parser(void)
Use the default query parser that understands alphanumnerics, spaces, unicode, and so on (this method...
Definition: JASS_anytime_api.cpp:288
The results of a single query.
uint32_t get_max_top_k(void)
Return the largest possible top_k value, which might be smaller than the number of documents in the c...
Definition: JASS_anytime_api.cpp:225
size_t get_top_k(void)
Return the current top-k value.
Definition: JASS_anytime_api.cpp:216
Simple parser for queries.
This index cannot be loaded by this instance of the APIs because it contains more documents than the ...
Definition: JASS_anytime_api.h:37
JASS_anytime_result search(const std::string &query)
Search using the current index and the current parameters.
Definition: JASS_anytime_api.cpp:314
std::map< size_t, thread_data > thread_local_data
Data needed by each thread (the accumulators array, etc)
Definition: JASS_anytime_api.h:76
JASS_ERROR get_encoding_scheme(std::string &codex_name, int32_t &d_ness)
Return the name of the compression algorithm and the delta (d-gap) size.
Definition: JASS_anytime_api.cpp:234
Load and deserialise a JASS v1 index.
Definition: deserialised_jass_v1.h:36
Everything necessary to process a query is encapsulated in an object of this type.
Definition: query.h:34
static void anytime_bootstrap(JASS_anytime_api *thiss, JASS_anytime_thread_result &output, std::vector< JASS_anytime_query > &query_list, size_t thread_number)
Bootstrapping method for a thread to call into anytime()
Definition: JASS_anytime_api.cpp:25
JASS_ERROR set_accumulator_width(size_t width)
Set the accumulator page-table width (assuming a page-table like approach is being used) ...
Definition: JASS_anytime_api.cpp:298
void anytime(JASS_anytime_thread_result &output, std::vector< JASS_anytime_query > &query_list, size_t thread_number=0)
This method calls into the search engine with a set of queries and retrieves a set of results for eac...
Definition: JASS_anytime_api.cpp:391
JASS_ERROR set_top_k(size_t k)
Set the maximum numbre of documents to return in a resuts list.
Definition: JASS_anytime_api.cpp:187
std::vector< JASS_anytime_thread_result > threaded_search(std::vector< std::string > &query_list, size_t thread_count)
Search using the current index and the current parameters.
Definition: JASS_anytime_api.cpp:332
An exception occurred - probably not caused by JASS (might be a C++ RTL exception) ...
Definition: JASS_anytime_api.h:36
JASS_anytime_api()
Constructor.
Definition: JASS_anytime_api.cpp:34
uint32_t get_document_count(void)
Return the number of documents in the index.
Definition: JASS_anytime_api.cpp:204