parcel | Lucy |
class variable | LUCY_PHRASEQUERY |
struct symbol | lucy_PhraseQuery |
class nickname | lucy_PhraseQuery |
header file | Lucy/Search/PhraseQuery.h |
Lucy::Search::PhraseQuery – Query matching an ordered list of terms.
PhraseQuery is a subclass of Query for matching against an ordered sequence of terms.
lucy_PhraseQuery* // incremented
lucy_PhraseQuery_new(
cfish_String *field,
cfish_Vector *terms
);
Create a new PhraseQuery.
The field that the phrase must occur in.
The ordered array of terms that must match.
lucy_PhraseQuery*
lucy_PhraseQuery_init(
lucy_PhraseQuery *self,
cfish_String *field,
cfish_Vector *terms
);
Initialize a PhraseQuery.
The field that the phrase must occur in.
The ordered array of terms that must match.
cfish_String*
lucy_PhraseQuery_Get_Field(
lucy_PhraseQuery *self
);
Accessor for object’s field attribute.
cfish_Vector*
lucy_PhraseQuery_Get_Terms(
lucy_PhraseQuery *self
);
Accessor for object’s array of terms.
lucy_Compiler* // incremented
lucy_PhraseQuery_Make_Compiler(
lucy_PhraseQuery *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.
bool
lucy_PhraseQuery_Equals(
lucy_PhraseQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
cfish_String* // incremented
lucy_PhraseQuery_To_String(
lucy_PhraseQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
cfish_Obj* // incremented
lucy_PhraseQuery_Dump(
lucy_PhraseQuery *self
);
cfish_Obj* // incremented
lucy_PhraseQuery_Load(
lucy_PhraseQuery *self,
cfish_Obj *dump
);
void
lucy_PhraseQuery_Set_Boost(
lucy_PhraseQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_PhraseQuery_Get_Boost(
lucy_PhraseQuery *self
);
Get the Query’s boost.
Lucy::Search::PhraseQuery 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.