public static class SearchIndexSuggestionExtractor.Options extends Object implements Cloneable
SearchIndexSuggestionExtractor.buildIndex(Session, String, Options).| Modifier and Type | Field and Description |
|---|---|
static String |
FULL_TEXT
Property value for
properties to use for addressing
the node-scoped full text index. |
int |
maxSuggestions
Maximum number of suggestions per term.
|
int |
maxTerms
Maximum number of the most frequent terms to extract from the Lucene
index.
|
int |
minFrequency
Minimum threshold for the frequence of a term to be included.
|
boolean |
minimizeIndex
Whether the index should be minimized.
|
int |
minTermLength
Minimum length in characters of a term to be included.
|
Set<String> |
properties
JCR properties from which to extract the terms.
|
String |
stopWordsFile
Path to a stop words file in the repository.
|
| Constructor and Description |
|---|
Options(boolean useDefaultProperties)
Creates new Options.
|
| Modifier and Type | Method and Description |
|---|---|
SearchIndexSuggestionExtractor.Options |
clone() |
public int maxSuggestions
SuggestionIndex.index(java.util.List, int, boolean). Defaults
to 10.public boolean minimizeIndex
SuggestionIndex.index(java.util.List, int, boolean). Defaults
to true.public int maxTerms
public int minFrequency
public int minTermLength
public String stopWordsFile
This must be a text file containing one word per line; lines starting with "#" are ignored, as well as leading and trailing whitespace.
To support multiple stop word files, please merge them in a new file and point to that one.
Defaults to a built-in english stop words file at
/libs/cq/search/content/suggest/stopwords/en.txt.
public static final String FULL_TEXT
properties to use for addressing
the node-scoped full text index.public Options(boolean useDefaultProperties)
useDefaultProperties - if the properties should be initialized with
default values or notpublic SearchIndexSuggestionExtractor.Options clone()
Copyright © 2010 - 2020 Adobe. All Rights Reserved