parcel | Lucy |
class variable | LUCY_TERMQUERY |
struct symbol | lucy_TermQuery |
class nickname | lucy_TermQuery |
header file | Lucy/Search/TermQuery.h |
Lucy::Search::TermQuery – Query which matches individual terms.
TermQuery is a subclass of Query for matching individual terms in a specific field.
lucy_TermQuery* // incremented
lucy_TermQuery_new(
cfish_String *field,
cfish_Obj *term
);
Create a new TermQuery.
Field name.
Term text.
lucy_TermQuery*
lucy_TermQuery_init(
lucy_TermQuery *self,
cfish_String *field,
cfish_Obj *term
);
Initialize a TermQuery.
Field name.
Term text.
cfish_String*
lucy_TermQuery_Get_Field(
lucy_TermQuery *self
);
Accessor for object’s field
member.
cfish_Obj*
lucy_TermQuery_Get_Term(
lucy_TermQuery *self
);
Accessor for object’s term
member.
lucy_Compiler* // incremented
lucy_TermQuery_Make_Compiler(
lucy_TermQuery *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_TermQuery_To_String(
lucy_TermQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
cfish_Obj* // incremented
lucy_TermQuery_Dump(
lucy_TermQuery *self
);
cfish_Obj* // incremented
lucy_TermQuery_Load(
lucy_TermQuery *self,
cfish_Obj *dump
);
bool
lucy_TermQuery_Equals(
lucy_TermQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
void
lucy_TermQuery_Set_Boost(
lucy_TermQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_TermQuery_Get_Boost(
lucy_TermQuery *self
);
Get the Query’s boost.
Lucy::Search::TermQuery 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.