3.On clicking on the above fragment or the file name, navigate the user to the corresponding HTML page and highlight the Search Key in it<blockquote> (Cannot product a link for that file name which will open that HTML in the browser. Highlighting is the next step after this) </blockquote>
Hi, as far as I know default SOLR hit highlighting component cannot be used in Alfresco's SOLR. I've tried this in 4.0 & gave up after a few hours. Maybe it is easier with later Alfresco versions. At least Alfresco Search API doesn't support hit highlighting, so it's gonna be a bigger coding task. cheers, jan
Thanks for the reply Jan. Oh, so in that case what would you suggest as an alternative for my use case? I need to get the highlight working otherwise have to think of a different crazy way to do it like getting the content out of Alfresco & putting only the required content on to the server and having Solr index that for enabling the highlighting (I don't know how I will do this also though, need to check) of content.
Even if we supported this in the product the CMIS API does not cover highlighting. It is something to suggest.
If you mark properties as stored in the dictionary you can use highlighting as shipped with SOLR but it would not be exposed in the Alfresco search and you would have to go to SOLR direct.