Class: module:models/SuggestedPhrase

module:models/SuggestedPhrase()

new module:models/SuggestedPhrase()

Constructs a new SuggestedPhrase. Document representing a suggested search phrase.

Source:

Members

(inner) exact_match :Boolean

Returns whether this suggested phrase exactly matches the user input search phrase.

Type:
  • Boolean
Source:

(inner) phrase :String

Returns the suggested search phrase.

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/SuggestedPhrase}

Constructs a SuggestedPhrase from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/SuggestedPhrase

Optional instance to populate.

Source:
Returns:

The populated SuggestedPhrase instance.

Type
module:models/SuggestedPhrase