Hi, I'm having some issues with Solr search results (using Solr 1.4 ) . I have enabled highlighting of searched text (hl=true) and set the fragment size as 500 (hl.fragsize=500) in the search query. Below is the (screen shot) results shown when I searched for the term 'grandfather' (2 results are displayed) . Now I have couple of problems in this.
1. In the search results the keyword is appearing inconsistently towards the start/end of the text. I'd like to control the number of characters appearing before and after the keyword match (highlighted term). More specifically I'd like to get the keyword match somewhere around the middle of the resultant text. 2. The total number of characters appearing in the search result is never equals the fragment size I specified (500 characters). It varies in greater extends (for example 408 or 520). Please share your thoughts on achieving the above 2 results. [cid:image001.png@01CEA8D2.4FF025E0] Thanks & Regards, Sreehareesh KM