dw.suggest
Class SuggestedTerm
Object
dw.suggest.SuggestedTerm
A single suggested term. Each user input term of the search phrase is being processed separately by the suggestion engine. For each original term, a list of terms will be suggested, either completed terms, corrected terms or even the exact term if it is known to the engine.

Each suggested term is represented by a instance of this class. The list of suggested terms belonging to a single original term is represented by a instance of SuggestedTerms class.

The suggested term value can either be the completed version of the original term, the corrected version of the original term or exactly the original term.

Properties
additional  :  boolean  (Read Only)
Returns whether this suggested term is a additional term that has no corresponding term in the original search phrase.
completed  :  boolean  (Read Only)
Returns whether this suggested term is a auto completed version of the original term. In other words, this method returns true if the original term is a prefix of this suggested term.
corrected  :  boolean  (Read Only)
Returns whether this suggested term is a corrected version of the original term.
exactMatch  :  boolean  (Read Only)
Returns whether this suggested term is exactly matching the original term.
value  :  String  (Read Only)
Returns this suggested term as String value.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getValue() : String
Returns this suggested term as String value.
isAdditional() : boolean
Returns whether this suggested term is a additional term that has no corresponding term in the original search phrase.
isCompleted() : boolean
Returns whether this suggested term is a auto completed version of the original term.
isCorrected() : boolean
Returns whether this suggested term is a corrected version of the original term.
isExactMatch() : boolean
Returns whether this suggested term is exactly matching the original term.
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.

Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβ€”passing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβ€”this is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?

This isn't just another prep courseβ€”it's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.

The Salesforce B2C Commerce Architect certification is a whole different gameβ€”complex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Method Detail
getValue
getValue() : String
Returns this suggested term as String value.
Returns:
the string representation of this suggested term

isAdditional
isAdditional() : boolean
Returns whether this suggested term is a additional term that has no corresponding term in the original search phrase.
Returns:
true if this suggested term is a additional term, false otherwise

isCompleted
isCompleted() : boolean
Returns whether this suggested term is a auto completed version of the original term. In other words, this method returns true if the original term is a prefix of this suggested term.
Returns:
true if this suggested term is evaluated by auto completion, false otherwise

isCorrected
isCorrected() : boolean
Returns whether this suggested term is a corrected version of the original term.
Returns:
true if this suggested term is a corrected version of the original term, false otherwise

isExactMatch
isExactMatch() : boolean
Returns whether this suggested term is exactly matching the original term.
Returns:
true if this suggested term exactly matches the original term, false otherwise

β™₯
Notifications pending to read