How to get excerpt data in rest api call?
I am getting " " excerpt value in coveo response .Can anyone help me to get data in excerpt so that i can display search result properly without using template..Any help will be appreciated.
You mean that the excerpt is empty in the JSON response, right?
"Title" : "TITLE", "Uri" : "http://1234", "PrintableUri" : "http://abc", "ClickUri" : "https://xyz", "UniqueId" : "UNIQUE ID", "Excerpt" : " ".", <=== THIS?
This may not be a matter of getting the data from the API, per se.
The Excerpt is actually generated at query-time by an algorithm, according to the search terms, from a selection of "excerpt sentences" that are selected from the document's body and stored with each item in the index.
Maybe there is no body on the on the documents matching your query? Have you checked the matching documents in either your Content Browser or Index Browser (I don't know if you use a Cloud or on-premise index)? Perhaps the documents are indexed by reference, for instance. The mapping for the Knowledge articles could also be missing a body mapping.
Just a few ideas off of the top of my head and which I hope will help.