You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Rui Carneiro <ru...@gmail.com> on 2009/07/09 12:04:05 UTC
AlternateField and DynamicField
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?
AlternateField and DynamicField
Posted by Rui Carneiro <ru...@gmail.com>.
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?