Hi Erick,

"multivalue" is my typo, thanks for your reminding.

There is no log show anything wrong or exception occurred.

The field definition as following....

        <field name="summary" type="text" indexed="true" stored="true"
omitNorms="false" termVectors="true" termPositions="true"
termOffsets="true" storeOffsetsWithPositions="true"/>

        <dynamicField name="*" type="text" indexed="true" stored="true"
multiValued="true" termVectors="true" termPositions="true"
termOffsets="true" omitNorms="false" storeOffsetsWithPositions="true"/>

The PostingSolrHighlighter only do highlight on summary field.

When I send a xml file to solr like this

<?xml version="1.0" encoding="utf-8"?>
<command>
  <add>
    <doc>
      <field name="summary">facebook yahoo plurk twitter social
nextworing</field>
      <field name="body_0">facebook yahoo plurk twitter social
nextworing</field>
    </doc>
  </add>
</command>

As you can see the body_0 will be treated using dynamicField definition.

Part of the debug response return of Solr like this

<lst name="highlighting">
  <lst name="645">
    <arr name="summary">
      <str><em>Facebook</em>... <em>Facebook</em></str>
    </arr>
    <arr name="body_0"/>
....
</lst>

I'm sure hl.fl contains both summary and body_0.
This behavior is different between PostingSolrHighlighter and
FastVectorhighlighter.

Please kindly help on this.
Many thanks.

Floyd



2013/6/19 Erick Erickson <erickerick...@gmail.com>

> Well, _how_ does it fail? unless it's a type it should be
> multiValued (not capital 'V'). This probably isn't the
> problem, but just in case.....
>
> Anything in the logs? What is the field definition?
> Did you re-index after changing to multiValued?
>
> Best
> Erick
>
> On Tue, Jun 18, 2013 at 11:01 PM, Floyd Wu <floyd...@gmail.com> wrote:
> > In my test case, it seems this new highlighter not working.
> >
> > When field set multivalue=true, the stored text in this field can not be
> > highlighted.
> >
> > Am I miss something? Or this is current limitation? I have no luck to
> find
> > any documentations mentioned this.
> >
> > Floyd
>

Reply via email to