parcel | Lucy |
class variable | LUCY_FULLTEXTTYPE |
struct symbol | lucy_FullTextType |
class nickname | lucy_FullTextType |
header file | Lucy/Plan/FullTextType.h |
Lucy::Plan::FullTextType – Full-text search field type.
Lucy::Plan::FullTextType is an implementation of FieldType tuned for “full text search”.
Full text fields are associated with an Analyzer, which is used to tokenize and normalize the text so that it can be searched for individual words.
For an exact-match, single value field type using character data, see StringType.
lucy_FullTextType* // incremented
lucy_FullTextType_new(
lucy_Analyzer *analyzer
);
Create a new FullTextType.
lucy_FullTextType*
lucy_FullTextType_init(
lucy_FullTextType *self,
lucy_Analyzer *analyzer
);
Initialize a FullTextType.
lucy_FullTextType*
lucy_FullTextType_init2(
lucy_FullTextType *self,
lucy_Analyzer *analyzer,
float boost,
bool indexed,
bool stored,
bool sortable,
bool highlightable
);
An Analyzer.
floating point per-field boost.
boolean indicating whether the field should be indexed.
boolean indicating whether the field should be stored.
boolean indicating whether the field should be sortable.
boolean indicating whether the field should be highlightable.
void
lucy_FullTextType_Set_Highlightable(
lucy_FullTextType *self,
bool highlightable
);
Indicate whether to store data required by Highlighter for excerpt selection and search term highlighting.
bool
lucy_FullTextType_Highlightable(
lucy_FullTextType *self
);
Accessor for “highlightable” property.
lucy_Analyzer*
lucy_FullTextType_Get_Analyzer(
lucy_FullTextType *self
);
Accessor for the type’s analyzer.
bool
lucy_FullTextType_Equals(
lucy_FullTextType *self,
cfish_Obj *other
);
Compares all common properties.
void
lucy_FullTextType_Set_Boost(
lucy_FullTextType *self,
float boost
);
Setter for boost
.
float
lucy_FullTextType_Get_Boost(
lucy_FullTextType *self
);
Accessor for boost
.
void
lucy_FullTextType_Set_Indexed(
lucy_FullTextType *self,
bool indexed
);
Setter for indexed
.
bool
lucy_FullTextType_Indexed(
lucy_FullTextType *self
);
Accessor for indexed
.
void
lucy_FullTextType_Set_Stored(
lucy_FullTextType *self,
bool stored
);
Setter for stored
.
bool
lucy_FullTextType_Stored(
lucy_FullTextType *self
);
Accessor for stored
.
void
lucy_FullTextType_Set_Sortable(
lucy_FullTextType *self,
bool sortable
);
Setter for sortable
.
bool
lucy_FullTextType_Sortable(
lucy_FullTextType *self
);
Accessor for sortable
.
bool
lucy_FullTextType_Binary(
lucy_FullTextType *self
);
Indicate whether the field contains binary data.
Lucy::Plan::FullTextType is a Lucy::Plan::TextType is a Lucy::Plan::FieldType 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.