public class AdjustedSearch extends Object
Constructor and Description |
---|
AdjustedSearch()
Default constructor.
|
AdjustedSearch(String terms,
boolean autoPhrased,
boolean spellCorrected)
Constructs an
AdjustedSearch with the specified terms, auto phrase and spell corrected values. |
Modifier and Type | Method and Description |
---|---|
String |
getAdjustedTerms() |
boolean |
isAutoPhrased() |
boolean |
isSpellCorrected() |
void |
setAdjustedTerms(String adjustedTerms)
Sets the adjusted terms of the search.
|
void |
setAutoPhrased(boolean autoPhrased)
Sets the auto-phrased flag.
|
void |
setSpellCorrected(boolean spellCorrected)
Sets the spell correction flag.
|
public AdjustedSearch()
public AdjustedSearch(String terms, boolean autoPhrased, boolean spellCorrected)
AdjustedSearch
with the specified terms, auto phrase and spell corrected values.terms
- the adjusted terms of the searchautoPhrased
- true if the term was adjusted to a phrasespellCorrected
- true if the term was spell correctedpublic String getAdjustedTerms()
public void setAdjustedTerms(String adjustedTerms)
adjustedTerms
- the adjusted termspublic boolean isSpellCorrected()
public void setSpellCorrected(boolean spellCorrected)
spellCorrected
- true if the terms were spell correctedpublic boolean isAutoPhrased()
public void setAutoPhrased(boolean autoPhrased)
autoPhrased
- true if the terms were auto-phrasedCopyright © 2013, Oracle and/or its affiliates. All rights reserved.