lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avlesh Singh <avl...@gmail.com>
Subject Re: problems with PhraseHighlighter
Date Sun, 01 Nov 2009 15:21:32 GMT
Copy-paste your field definition for the field you are trying to
highlight/search on.

Cheers
Avlesh

On Sun, Nov 1, 2009 at 8:24 PM, AHMET ARSLAN <iorixxx@yahoo.com> wrote:

> Hello everyone,
>
> I am having problems with highlighting the complete text of a field. I have
> an xml field. I am querying proximity searches on this field.
>
> xml:  ( proximity1 AND/OR proximity2 AND/OR …)
>
> Results are returned successfully satisfying the proximity query. However
> when I request highlighting sometimes it returns nothing sometimes it
> returns missing proximity terms.
>
> I set my maxFieldLength to Integer.MAX_VALUE in solrconfig.xml.
> <maxFieldLength>2147483647</maxFieldLength>
>
> I am using these highlighting parameters:
>
> hl.maxAnalyzedChars=2147483647
> hl.fragsize=2147483647
> hl.usePhraseHighlighter=true
> hl.requireFieldMatch=true
> hl.fl=xml
> hl=true
>
> I tried combinations of hl.fragsize=0 and hl.requireFieldMatch=false but it
> didn’t help. When i set hl.usePhraseHighlighter=false highlighting returns
> but all query terms are highlighted.
>
> What value of hl.fragsize should I use to highlight complete text of a
> field? 0 or 2147483647?
>
> What is the highest value that I can set to hl.maxAnalyzedChars and
> hl.fragsize?
>
> I am querying same field and requesting same field in highlighting.
> Although a document matches a query no highlighting returns back. What could
> be the reason?
>
> If a document matches a query, there should be highlighting returning back,
> right?
>
> Any help or pointers are really appreciated.
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message