Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FLAGS |
static int |
KEEP_FIELD_FLAGS
If set (default), we keep flags per index record telling us what fields the term appeared on,
and allowing us to filter results by field
|
static int |
KEEP_TERM_FREQUENCIES
With each document:term record, store how often the term appears within the document.
|
static int |
USE_TERM_OFFSETS
Set this to tell the index not to save term offset vectors.
|
Constructor and Description |
---|
IndexOptions(int flags)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static Client.IndexOptions |
Default()
Deprecated.
use
defaultOptions() instead |
static Client.IndexOptions |
defaultOptions()
The default indexing options - use term offsets and keep fields flags
|
IndexDefinition |
getDefinition() |
void |
serializeRedisArgs(List<String> args) |
Client.IndexOptions |
setDefinition(IndexDefinition definition) |
Client.IndexOptions |
setNoStopwords()
Set the index to contain no stopwords, overriding the default list
|
Client.IndexOptions |
SetNoStopwords()
Deprecated.
Use
setNoStopwords() instead |
Client.IndexOptions |
setStopwords(String... stopwords)
Set a custom stopword list
|
Client.IndexOptions |
SetStopwords(String... stopwords)
Deprecated.
use
setStopwords(String...) instead |
Client.IndexOptions |
setTemporary(long expire)
Temporary
|
public static final int USE_TERM_OFFSETS
public static final int KEEP_FIELD_FLAGS
public static final int KEEP_TERM_FREQUENCIES
public static final int DEFAULT_FLAGS
public IndexOptions(int flags)
flags
- flag maskpublic static Client.IndexOptions defaultOptions()
@Deprecated public static Client.IndexOptions Default()
defaultOptions()
insteadpublic Client.IndexOptions setStopwords(String... stopwords)
stopwords
- the list of stopwords@Deprecated public Client.IndexOptions SetStopwords(String... stopwords)
setStopwords(String...)
insteadstopwords
- the list of stopwordspublic Client.IndexOptions setNoStopwords()
@Deprecated public Client.IndexOptions SetNoStopwords()
setNoStopwords()
insteadpublic Client.IndexOptions setTemporary(long expire)
expire
- public IndexDefinition getDefinition()
public Client.IndexOptions setDefinition(IndexDefinition definition)
Copyright © 2021 RedisLabs. All rights reserved.