I have a post with 3 attributes
title,authorwebid,text
for text i only want snippet as the text field is large.
Query query = new Query("searchstring").setAttributesToRetrieve
(Arrays.asList("title", "authorwebid"));
query.setAttributesToHighlight(Arrays.asList("text"));
query.setAttributesToSnippet(Arrays.asList("text:80"));
SearchResult<SearchPost> result = index_post.search(query);
from the result object how do i get snippet of attribute text