--- title: SearchApiResult Apex class slug: '3119' canonical_url: https://docs.coveo.com/en/3119/ collection: coveo-for-salesforce source_format: adoc --- # SearchApiResult Apex class Represents a Coveo Search API result. > **Note** > > You should also consult the: > > * [SearchApiClient Apex class](https://docs.coveo.com/en/2988/) > * [SearchApiResponse Apex class](https://docs.coveo.com/en/3117/) The following fields constitute a Coveo `SearchAPI` result: * [`title` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-Title): The item title. * [`uri` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-Uri): The item URI. * [`printableUri` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-PrintableUri): The human-readable item URI. * [`clickUri` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-clickUri): The hyperlinkable item URI. * [`uniqueId` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-UniqueId): The unique item identifier. * [`excerpt` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-excerpt): The contextual excerpt generated for the item. * [`hasHtmlVersion` (Boolean)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-hasHtmlVersion): Whether the index contains an HTML version of the item. * [`score` (integer)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-score): The total ranking score computed for the item. * [`isTopResult` (Boolean](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-isTopResult): Whether the item was included in the results because it's a top result in the index configuration. * [`isRecommendation` (Boolean)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-isRecommendation): Whether the item score was boosted as a Coveo ML recommendation. * [`rankingModifier` (string)](https://docs.coveo.com/en/13#operation/searchUsingPost-response-results-rankingModifier): If applicable, represents the type of ranking modification that was applied to this result. * `map raw`: The raw response. ## key `param` The key to look for in the raw field result. ```apex Object myProperty = mySearchApiResponse.results[0].getRawProperty('bar'); ``` > **Note** > > To have a typed field value, use the following methods to get your property in the expected type. ## getRawProperty (String fieldName) Attempts to return an untyped property from the result's raw field. Returns `null` if the key doesn't exist. ## getRawPropertyAsDateTime Attempts to return a `DateTime` property from a result's raw field. Returns `null` if the key doesn't exist. ## getRawPropertyAsString Attempts to return a `String` property from the result's raw field. Returns an empty string if the key doesn't exist. ## getRawPropertyAsBoolean Attempts to return a `Boolean` property from the result's raw field. Returns `false` if the key doesn't exist. ## getRawPropertyAsInteger Attempts to return an `Integer` property from the result's raw field. Returns `0` if the key doesn't exist. ## getRawPropertyAsDouble Attempts to return a `Double` property from the result's raw field. Returns `0.0` if the key doesn't exist.