parcel | Lucy |
class variable | LUCY_ANDQUERY |
struct symbol | lucy_ANDQuery |
class nickname | lucy_ANDQuery |
header file | Lucy/Search/ANDQuery.h |
Lucy::Search::ANDQuery – Intersect multiple result sets.
ANDQuery is a composite Query which matches only when all of its children match, so its result set is the intersection of their result sets. Documents which match receive a summed score.
lucy_ANDQuery* // incremented
lucy_ANDQuery_new(
cfish_Vector *children
);
Create a new ANDQuery.
An array of child Queries.
lucy_ANDQuery*
lucy_ANDQuery_init(
lucy_ANDQuery *self,
cfish_Vector *children
);
Initialize an ANDQuery.
An array of child Queries.
lucy_Compiler* // incremented
lucy_ANDQuery_Make_Compiler(
lucy_ANDQuery *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_ANDQuery_To_String(
lucy_ANDQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
bool
lucy_ANDQuery_Equals(
lucy_ANDQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
void
lucy_ANDQuery_Add_Child(
lucy_ANDQuery *self,
lucy_Query *query
);
Add a child Query node.
cfish_Obj* // incremented
lucy_ANDQuery_Dump(
lucy_ANDQuery *self
);
cfish_Obj* // incremented
lucy_ANDQuery_Load(
lucy_ANDQuery *self,
cfish_Obj *dump
);
void
lucy_ANDQuery_Set_Boost(
lucy_ANDQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_ANDQuery_Get_Boost(
lucy_ANDQuery *self
);
Get the Query’s boost.
Lucy::Search::ANDQuery 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.