2010/3/24 Ahmet Arslan <iori...@yahoo.com>

> > There's a match between the query and
> > the content of field I want to
> > highlight on. Solr is giving me the id of the document
> > matching my query,
> > but it's not displaying the field I want to highlight on.
> >
> > Here's the definition of the field I want to highlight
> > on:        <field
> > name="title" type="string" indexed="false"
> > stored="true"  />
> >
> > And here's part of my URL:
> > /?q=Terrain&debugQuery=on&hl=true&hl.fl=title
>
> With &q=Terrain you are querying your defaultSearchField and requesting
> highlighting from title field.
>

I don't have defaultSearchField, instead, I have the following qf clause,
where title_tokenized is a tokenized version of title         <str
name="qf"> title_tokenized^3 text_description_tokenized
phonetic_text^0.5</str>


>
> What is numFound when you hit this url? Highlighting comes?
>

the numFound is not zero, I get results, and also, in the highlighting
section, I get the id of the docs that matched my query


> /?q=title:Terrain&debugQuery=on&hl=true&hl.fl=title


> if it is zero, then it means that your match comes from your
> defaultSearchField (not from title field).
>
> if it is not zero, highlighting should work. can you confirm this?
>
>
this URL gives zero answer.  Again, I don't have defaultSearchField, the
result is coming from the "qf" clause.

What do you think?

Thanks.

Reply via email to