Can somebody tell me where should I place the highlighting parameters, when
I did on the query, it is not working.
&hl=true&hl.requireFieldMatch=true&hl.fl=*
FYI: I am new to solr. My aim  is to have emphasis tags on the queried
words and need to display only the query relevant snippet of the <content>

Thanks
Shameema





On Mon, May 14, 2012 at 1:18 PM, Ahmet Arslan <iori...@yahoo.com> wrote:

> > I have indexed very large documents, In some cases these
> > documents has
> > 100.000 characters. Is there a way to return a portion of
> > the documents
> > (lets say the 300 first characters) when i am querying
> > "Solr"?. Is there any
> > attribute to set in the schema.xml or solrconfig.xml to
> > achieve this?
>
> I have a set-up with very large documents too. Here is two different
> solutions that I have used in the past:
>
> 1) Use highlighting with hl.alternateField and hl.maxAlternateFieldLength
> http://wiki.apache.org/solr/HighlightingParameters
>
> 2) Create an extra field (indexed="false" and stored="true") using
> copyField just for display purposes. (&fl=shortField)
>
> <copyField source="largeField" dest="shortField" maxChars="300"/>
> http://wiki.apache.org/solr/SchemaXml#Copy_Fields
>
> Also, didn't used by myself yet but I *think* this can be accomplished by
> using a custom Transformer too.
> http://wiki.apache.org/solr/DocTransformers
>

Reply via email to