parcel | Lucy |
class variable | LUCY_ORQUERY |
struct symbol | lucy_ORQuery |
class nickname | lucy_ORQuery |
header file | Lucy/Search/ORQuery.h |
Lucy::Search::ORQuery – Union multiple result sets.
ORQuery is a composite Query which matches when any of its children match, so its result set is the union of their result sets. Matching documents recieve a summed score from all matching child Queries.
lucy_ORQuery* // incremented
lucy_ORQuery_new(
cfish_Vector *children
);
Create a new ORQuery.
An array of child Queries.
lucy_ORQuery*
lucy_ORQuery_init(
lucy_ORQuery *self,
cfish_Vector *children
);
Initialize an ORQuery.
An array of child Queries.
lucy_Compiler* // incremented
lucy_ORQuery_Make_Compiler(
lucy_ORQuery *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.
cfish_String* // incremented
lucy_ORQuery_To_String(
lucy_ORQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
bool
lucy_ORQuery_Equals(
lucy_ORQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
void
lucy_ORQuery_Add_Child(
lucy_ORQuery *self,
lucy_Query *query
);
Add a child Query node.
cfish_Obj* // incremented
lucy_ORQuery_Dump(
lucy_ORQuery *self
);
cfish_Obj* // incremented
lucy_ORQuery_Load(
lucy_ORQuery *self,
cfish_Obj *dump
);
void
lucy_ORQuery_Set_Boost(
lucy_ORQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_ORQuery_Get_Boost(
lucy_ORQuery *self
);
Get the Query’s boost.
Lucy::Search::ORQuery is a Lucy::Search::PolyQuery 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.