I think this is correct behaviour. If you go to google and search for "Tel", you will see that telephone is highlighted.
On Fri, Aug 5, 2011 at 5:42 PM, Ahmed Boubaker <abdeka.boubake...@gmail.com>wrote: > Hi, > > I am using solr 3 and highlighting is working fine. However when using > prefix query like tel*, the highlighter highlights the whole matching words > (i.e. television, telephone, ...). I am highlighting a very short field > (3~5 words length). > > How can I prevent the highlighter from doing so? I want to get only the > prefix of these words highlighted (i.e. <em>tel</em>evision, > <em>tel</em>ephone, ...), any solution or idea ? > > Many thanks for your help, > > Boubaker >