Hi Fatima,

Did you re-index after that chance? You need to re-index your documents.

Ahmet



On Thursday, January 23, 2014 7:31 AM, Fatima Issawi <issa...@qu.edu.qa> wrote:
Hi,

I have stored=true for my "content" field, but I get an error saying there is a 
mismatch of settings on that field (I think) because of the "term*=true"  
settings.

Thanks again,
Fatima




> -----Original Message-----
> From: Ahmet Arslan [mailto:iori...@yahoo.com]
> Sent: Wednesday, January 22, 2014 5:02 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Highlighting not working
> 
> Hi Fatima,
> 
> To enable higlighting (both standard and fastvector) you need to make
> stored="true".
> 
> Term vectors may speed up standard highlighter. Plus they are mandatory
> for FastVectorHighligher.
> 
> https://cwiki.apache.org/confluence/display/solr/Field+Properties+by+Use+
> Case
> 
> Ahmet
> 
> 
> 
> 
> 
> On Wednesday, January 22, 2014 10:44 AM, Fatima Issawi
> <issa...@qu.edu.qa> wrote:
> Also my highlighting defaults...
> 
>   <requestHandler name="/browse" class="solr.SearchHandler">
>      <lst name="defaults">
> ....
>        <!-- Highlighting defaults -->
>        <str name="hl">on</str>
>        <str name="hl.fl">content documentname</str>
>        <str name="hl.encoder">html</str>
>        <str name="hl.simple.pre">&lt;b&gt;</str>
>        <str name="hl.simple.post">&lt;/b&gt;</str>
>        <str name="f.documentname.hl.fragsize">0</str>
>        <str name="f.documentname.hl.alternateField">documentname</str>
>        <str name="f.content.hl.snippets">3</str>
>        <str name="f.content.hl.fragsize">200</str>
>        <str name="f.content.hl.alternateField">content</str>
>        <str name="f.content.hl.maxAlternateFieldLength">750</str>
> 
> 
> > -----Original Message-----
> > From: Fatima Issawi [mailto:issa...@qu.edu.qa]
> > Sent: Wednesday, January 22, 2014 11:34 AM
> > To: solr-user@lucene.apache.org
> > Subject: Highlighting not working
> >
> > Hello,
> >
> > I'm trying to highlight content that is returned from a Solr query,
> > but I can't seem to get it working.
> >
> > I would like to highlight the "documentname" and the "pagetext" or
> > "content" results, but when I run the search I don't get anything
> > returned. I thought that the "content" field is supposed to be used for
> hightlighting?
> > And that [termVectors="true" termPositions="true" termOffsets="true"]
> > needs to be added to the fields that need to be highlighted? Is there
> > something else I'm missing?
> >
> >
> > Here is my schema:
> >
> >    <field name="id" type="string" indexed="true" stored="true"
> > required="true" multiValued="false" />
> >    <field name="documentid" type="int" indexed="true" stored="true"
> > omitNorms="true"/>
> >    <field name="documentname" type="text_ar" indexed="true"
> > stored="true" termVectors="true"  termPositions="true"
> > termOffsets="true"/>
> >    <field name="copyist" type="text_ar" indexed="true" stored="true"/>
> >   <field name="owner" type="text_ar" indexed="true" stored="true"/>
> >    <field name="collector" type="text_ar" indexed="true"
> >stored="true"/>
> >    <field name="date" type="date" indexed="true" stored="true"/>
> >    <field name="pagenumber" type="int" indexed="false"
> >stored="true"/>/>
> >    <field name="pagetext" type="text_ar" indexed="true" stored="false"
> > termVectors="true" termPositions="true" termOffsets="true"/>
> >
> >    <field name="content" type="text_ar" indexed="false" stored="true"
> > multiValued="true" termVectors="true" termPositions="true"
> > termOffsets="true"/>
> >
> >    <field name="text" type="text_ar" indexed="true" stored="false"
> > multiValued="true"/>
> >
> >    <copyField source="pagetext" dest="content" />
> >    <copyField source="documentname" dest="text"/>
> >    <copyField source="copyist" dest="text"/>
> >    <copyField source="owner" dest="text"/>
> >    <copyField source="subject" dest="text"/>
> >    <copyField source="date" dest="text"/>
> >    <copyField source="pagenumber" dest="text"/>
> >
> >
> > Thanks,
> > Fatima

Reply via email to