public static class SearchIndexSuggestionExtractor.Options
extends java.lang.Object
implements java.lang.Cloneable
SearchIndexSuggestionExtractor.buildIndex(Session, String, Options)
.Modifier and Type | Field and Description |
---|---|
static java.lang.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.
|
java.util.Set<java.lang.String> |
properties
JCR properties from which to extract the terms.
|
java.lang.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 java.lang.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 java.lang.String FULL_TEXT
properties
to use for addressing
the node-scoped full text index.public java.util.Set<java.lang.String> properties
FULL_TEXT
for the node-scoped full text index. Defaults to
text
and title
.public Options(boolean useDefaultProperties)
useDefaultProperties
- if the properties
should be initialized with
default values or notpublic SearchIndexSuggestionExtractor.Options clone()
clone
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"