com.endeca.infront.cartridge.model
Class AdjustedSearch

java.lang.Object
  extended by com.endeca.infront.cartridge.model.AdjustedSearch

public class AdjustedSearch
extends Object

Represents a search input that was automatically adjusted. Search terms can be spell corrected and then automatically turned into a phrase. For example, the search keywords "digital camer" can be first spell corrected to the keywords "digital camera" and then adjusted to the phrase "digital camera".


Constructor Summary
AdjustedSearch()
          Default constructor.
AdjustedSearch(String terms, boolean autoPhrased, boolean spellCorrected)
          Constructs an AdjustedSearch with the specified terms, auto phrase and spell corrected values.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdjustedSearch

public AdjustedSearch()
Default constructor.


AdjustedSearch

public AdjustedSearch(String terms,
                      boolean autoPhrased,
                      boolean spellCorrected)
Constructs an AdjustedSearch with the specified terms, auto phrase and spell corrected values.

Parameters:
terms - the adjusted terms of the search
autoPhrased - true if the term was adjusted to a phrase
spellCorrected - true if the term was spell corrected
Method Detail

getAdjustedTerms

public String getAdjustedTerms()
Returns:
The adjusted terms of the search.

setAdjustedTerms

public void setAdjustedTerms(String adjustedTerms)
Sets the adjusted terms of the search.

Parameters:
adjustedTerms - the adjusted terms

isSpellCorrected

public boolean isSpellCorrected()
Returns:
True if the terms were spell corrected.

setSpellCorrected

public void setSpellCorrected(boolean spellCorrected)
Sets the spell correction flag.

Parameters:
spellCorrected - true if the terms were spell corrected

isAutoPhrased

public boolean isAutoPhrased()
Returns:
True if the terms were auto-phrased.

setAutoPhrased

public void setAutoPhrased(boolean autoPhrased)
Sets the auto-phrased flag.

Parameters:
autoPhrased - true if the terms were auto-phrased


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.