parcel | Lucy |
class variable | LUCY_PROXIMITYQUERY |
struct symbol | lucy_ProximityQuery |
class nickname | lucy_ProximityQuery |
header file | LucyX/Search/ProximityQuery.h |
LucyX::Search::ProximityQuery – Query matching an ordered list of terms.
ProximityQuery is a subclass of Query for matching against an ordered sequence of terms.
lucy_ProximityQuery* // incremented
lucy_ProximityQuery_new(
cfish_String *field,
cfish_Vector *terms,
uint32_t within
);
Create a new ProximityQuery.
The field that the phrase must occur in.
The ordered array of terms that must match.
lucy_ProximityQuery*
lucy_ProximityQuery_init(
lucy_ProximityQuery *self,
cfish_String *field,
cfish_Vector *terms,
uint32_t within
);
Initialize a ProximityQuery.
The field that the phrase must occur in.
The ordered array of terms that must match.
cfish_String*
lucy_ProximityQuery_Get_Field(
lucy_ProximityQuery *self
);
Accessor for object’s field attribute.
cfish_Vector*
lucy_ProximityQuery_Get_Terms(
lucy_ProximityQuery *self
);
Accessor for object’s array of terms.
uint32_t
lucy_ProximityQuery_Get_Within(
lucy_ProximityQuery *self
);
Accessor for object’s within attribute.
lucy_Compiler* // incremented
lucy_ProximityQuery_Make_Compiler(
lucy_ProximityQuery *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_ProximityQuery_Equals(
lucy_ProximityQuery *self,
cfish_Obj *other
);
Indicate whether two objects are the same. By default, compares the memory address.
Another Obj.
cfish_String* // incremented
lucy_ProximityQuery_To_String(
lucy_ProximityQuery *self
);
Generic stringification: “ClassName@hex_mem_address”.
cfish_Obj* // incremented
lucy_ProximityQuery_Dump(
lucy_ProximityQuery *self
);
cfish_Obj* // incremented
lucy_ProximityQuery_Load(
lucy_ProximityQuery *self,
cfish_Obj *dump
);
void
lucy_ProximityQuery_Set_Boost(
lucy_ProximityQuery *self,
float boost
);
Set the Query’s boost.
float
lucy_ProximityQuery_Get_Boost(
lucy_ProximityQuery *self
);
Get the Query’s boost.
LucyX::Search::ProximityQuery 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.