You're using the string fieldType to get highlighting to work but it must be tokenized. Use a fieldType with a tokenizer.
See also: http://wiki.apache.org/solr/FieldOptionsByUseCase > Hi, > > I'm using the "old" 1.3 Solr version on one of my sites and I decided to > add a highlighting feature. Unfortunately I can not get it to work. I'm > doing some testing in the Sorl admin interface without much luck. Below is > some information that describes the problem. > > I would like to highlight text in the field text, schema.xml config of > text: > > <field name="text" type="string" indexed="true" stored="true"/> > > Query in the solr admin interface: > > http://127.0.0.1:8080/solr/select?indent=on&version=2.2&q=solr&start=0&rows > =10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=text > > I get back two results, both of the text fields contain the query "solr". > In the highlight tag I get only the IDs: > > <lst name="highlighting"><lst name="54807"/><lst name="105235"/></lst> > > Any ideas what may be causing this and how I can debug it? Thanks. > > Kind regards, > > Nick > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-1-3-highlighting-problem-tp2918089 > p2918089.html Sent from the Solr - User mailing list archive at Nabble.com.