I'm running some test on Solr 4.0 before putting it into production, and
I've just encountered an issue with hit highlighting.

I started by placing my index from 3.3 into a Solr 4.0 install.  I then
edited the field definition in the schema config to match my schema from
3.3, with the addition of the new _version_ field.  I also modified the
solrconfig.xml defaults to match my previous 3.3 config (only editing the
default df).

Once I had everything configured, I started the application, then called
"optimize".

After optimization had completed, I executed the following query:

http://
<server>/solr/select?indent=on&version=2.2&q=omega&fq=&start=0&rows=50&fl=*%2Cscore&qt=&wt=&explainOther=&hl=on&hl.fl=contents

This query returned a highlight element in the return packet, but the
fragment section was empty in Solr 4, while it returned fragments in 3.3.
Do I need to make any additional changes?  The default field is "contents",
which is a text_en field.

Reply via email to