Hi,

I have the following index:

<fields>
    <field name="id" type="string" indexed="true" stored="true"
required="true" />
    <dynamicField name="file_*" type="text" indexed="true" stored="true"
required="false" />
    <field name="any_file" type="text" indexed="true" stored="false"
multiValued="true" required="false" />
</fields>
  <copyField source="file_*" dest="any_file" />

I want to use highlight to minimize the traffic load. But, when the
highlight find nothing, i want the first N words from file_*.

It is possible to do something like this?

hl=on
hl.fl=file_*
hl.alternateField=file_*
hl.*maxAlternateFieldLength*=100

In other words, it is possible, in case of highlight did not find anything,
to retrieve the first 100 chars from the file_* of the documents that was
highlighted?

Reply via email to