parcel | Lucy |
class variable | LUCY_POLYQUERY |
struct symbol | lucy_PolyQuery |
class nickname | lucy_PolyQuery |
header file | Lucy/Search/PolyQuery.h |
Lucy::Search::PolyQuery – Base class for composite Query objects.
PolyQuery serves as a shared base class for ANDQuery, ORQuery, NOTQuery, and RequiredOptionalQuery. All of these classes may serve as nodes in composite Query with a tree structure which may be walked.
void
lucy_PolyQuery_Add_Child(
lucy_PolyQuery *self,
lucy_Query *query
);
Add a child Query node.
cfish_Obj* // incremented
lucy_PolyQuery_Dump(
lucy_PolyQuery *self
);
cfish_Obj* // incremented
lucy_PolyQuery_Load(
lucy_PolyQuery *self,
cfish_Obj *dump
);
bool
lucy_PolyQuery_Equals(
lucy_PolyQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
lucy_Compiler* // incremented
lucy_PolyQuery_Make_Compiler(
lucy_PolyQuery *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_PolyQuery_Set_Boost(
lucy_PolyQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_PolyQuery_Get_Boost(
lucy_PolyQuery *self
);
Get the Query’s boost.
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.