Package redis.clients.jedis.search
Class FTCreateParams
java.lang.Object
redis.clients.jedis.search.FTCreateParams
- All Implemented Interfaces:
IParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IndexDataTypeprivate Stringprivate Stringprivate Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate Collection<String> private Doubleprivate Stringprivate booleanprivate Collection<String> private Long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParams(CommandArguments args) This method can be chained to add multiple prefixes.static FTCreateParamsA filter expression with the full RediSearch aggregation expression language.Indicates the default language for documents in the index.languageField(String languageAttribute) Document attribute set as the document language.Forces RediSearch to encode indexes as if there were more than 32 text attributes.noFields()Does not store attribute bits for each term.noFreqs()Avoids saving the term frequencies in the index.noHL()Conserves storage space and memory by disabling highlighting support.Does not store term offsets for documents.The index does not have stopwords, not even the default ones.on(IndexDataType dataType) Currently supports HASH (default) and JSON.Tells the index which keys it should index.score(double defaultScore) Default score for documents in the index.scoreField(String scoreField) Document attribute that you use as the document rank based on the user ranking.Does not scan and index.Sets the index with a custom stopword list, to be ignored during indexing and search time.temporary(long seconds) Creates a lightweight temporary index that expires after a specified period of inactivity.
-
Field Details
-
dataType
-
prefix
-
filter
-
language
-
languageField
-
score
-
scoreField
-
maxTextFields
private boolean maxTextFields -
noOffsets
private boolean noOffsets -
temporary
-
noHL
private boolean noHL -
noFields
private boolean noFields -
noFreqs
private boolean noFreqs -
stopwords
-
skipInitialScan
private boolean skipInitialScan
-
-
Constructor Details
-
FTCreateParams
public FTCreateParams()
-
-
Method Details
-
createParams
-
on
Currently supports HASH (default) and JSON. To index JSON, you must have the RedisJSON module installed. -
prefix
Tells the index which keys it should index. You can add several prefixes to index. -
addPrefix
This method can be chained to add multiple prefixes.- See Also:
-
filter
A filter expression with the full RediSearch aggregation expression language. -
language
Indicates the default language for documents in the index. -
languageField
Document attribute set as the document language. -
score
Default score for documents in the index. -
scoreField
Document attribute that you use as the document rank based on the user ranking. Ranking must be between 0.0 and 1.0. -
maxTextFields
Forces RediSearch to encode indexes as if there were more than 32 text attributes. -
noOffsets
Does not store term offsets for documents. It saves memory, but does not allow exact searches or highlighting. -
temporary
Creates a lightweight temporary index that expires after a specified period of inactivity. -
noHL
Conserves storage space and memory by disabling highlighting support. -
noHighlights
- See Also:
-
noFields
Does not store attribute bits for each term. It saves memory, but it does not allow filtering by specific attributes. -
noFreqs
Avoids saving the term frequencies in the index. It saves memory, but does not allow sorting based on the frequencies of a given term within the document. -
stopwords
Sets the index with a custom stopword list, to be ignored during indexing and search time. -
noStopwords
The index does not have stopwords, not even the default ones. -
skipInitialScan
Does not scan and index. -
addParams
-