parcel | Lucy |
class variable | LUCY_MATCHALLQUERY |
struct symbol | lucy_MatchAllQuery |
class nickname | lucy_MatchAllQuery |
header file | Lucy/Search/MatchAllQuery.h |
Lucy::Search::MatchAllQuery – Query which matches all documents.
MatchAllQuery is a utility class which matches all documents. Each match is assigned a score of 0.0, so that in composite queries, any document which matches against another part of the query will be ranked higher than a document which matches only via the MatchAllQuery.
lucy_MatchAllQuery* // incremented
lucy_MatchAllQuery_new(void);
Constructor. Takes no arguments.
lucy_MatchAllQuery*
lucy_MatchAllQuery_init(
lucy_MatchAllQuery *self
);
Initialize a MatchAllQuery.
bool
lucy_MatchAllQuery_Equals(
lucy_MatchAllQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
cfish_String* // incremented
lucy_MatchAllQuery_To_String(
lucy_MatchAllQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
lucy_Compiler* // incremented
lucy_MatchAllQuery_Make_Compiler(
lucy_MatchAllQuery *self,
lucy_Searcher *searcher,
float boost,
bool subordinate
);
Abstract factory method returning a Compiler derived from this Query.
A Searcher.
A scoring multiplier.
Indicates whether the Query is a subquery (as opposed to a top-level query). If false, the implementation must invoke Normalize() on the newly minted Compiler object before returning it.
void
lucy_MatchAllQuery_Set_Boost(
lucy_MatchAllQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_MatchAllQuery_Get_Boost(
lucy_MatchAllQuery *self
);
Get the Query’s boost.
cfish_Obj* // incremented
lucy_MatchAllQuery_Dump(
lucy_MatchAllQuery *self
);
cfish_Obj* // incremented
lucy_MatchAllQuery_Load(
lucy_MatchAllQuery *self,
cfish_Obj *dump
);
Lucy::Search::MatchAllQuery is a Lucy::Search::Query is a Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.