open class Segment : Serializable
Describes recognized entitiy of the Autocomplete Search result.
Segment()
Describes recognized entitiy of the Autocomplete Search result. |
var id: String!
Provided for the category segment type. Can be used to restrict the results of other search endpoints to the Points Of Interest (POI) of specific categories. See the categorySet parameter in the Search service documentation, e.g., the Fuzzy Search endpoint. -- GETTER -- |
|
var matchedAlternativeName: String!
Optionally provided for the category segment type. Present only if a part of the user query matched to the alternative name instead of a primary name. For example, for the input query "petrol station" the category segment value will be "gas station" and the matchedAlternativeName will be "petrol station". -- GETTER -- |
|
var matches: Matches!
Defines a mapping between the inputQuery and segment. -- GETTER -- |
|
var type: SegmentType!
The type of a detected entity. Currently we can detect: category, brand, plaintext, but more types can appear in the future. -- GETTER -- |
|
var value: String!
The value of the detected entity. It may be a category name, brand name, or a part of unrecognized text. For the brand segment type, the value of this field can be used to restrict results of other search endpoints to the Points Of Interest (POI) of specific brands. See the brandSet parameter in the Search service documentation, e.g., the Fuzzy Search endpoint. -- GETTER -- |