parcel | Lucy |
class variable | LUCY_NOMATCHQUERY |
struct symbol | lucy_NoMatchQuery |
class nickname | lucy_NoMatchQuery |
header file | Lucy/Search/NoMatchQuery.h |
Lucy::Search::NoMatchQuery – Query which matches no documents.
NoMatchQuery is a utility class representing a query which matches nothing. Typical usage might include e.g. returning a NoMatchQuery when a QueryParser is asked to parse an empty string.
lucy_NoMatchQuery* // incremented
lucy_NoMatchQuery_new(void);
Constructor. Takes no arguments.
lucy_NoMatchQuery*
lucy_NoMatchQuery_init(
lucy_NoMatchQuery *self
);
Initialize a NoMatchQuery.
cfish_Obj* // incremented
lucy_NoMatchQuery_Dump(
lucy_NoMatchQuery *self
);
lucy_NoMatchQuery* // incremented
lucy_NoMatchQuery_Load(
lucy_NoMatchQuery *self,
cfish_Obj *dump
);
bool
lucy_NoMatchQuery_Equals(
lucy_NoMatchQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
cfish_String* // incremented
lucy_NoMatchQuery_To_String(
lucy_NoMatchQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
lucy_Compiler* // incremented
lucy_NoMatchQuery_Make_Compiler(
lucy_NoMatchQuery *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_NoMatchQuery_Set_Boost(
lucy_NoMatchQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_NoMatchQuery_Get_Boost(
lucy_NoMatchQuery *self
);
Get the Query’s boost.
Lucy::Search::NoMatchQuery 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.