lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen" <cdor...@gmail.com>
Subject Re: Highlight huge documents
Date Mon, 11 Aug 2008 08:47:33 GMT
I believe Highlighter.setMaxDocBytesToAnalyze(int byteCount) should be used
for this.

On Mon, Aug 11, 2008 at 11:40 AM, <jim@tera.gr> wrote:

> Hello
>
> I am using Highlighter to highlight query terms in documents getting from a
> database founded from lucene search.
> My problem is that when i display the full document, highlighter works fine
> for most of documents but if the document is huge the highlighter returns
> only a part of document. As i ve seen in source of Hightlighter there are
>
>        public static final  int DEFAULT_MAX_DOC_BYTES_TO_ANALYZE=50*1024;
>        private int maxDocBytesToAnalyze=DEFAULT_MAX_DOC_BYTES_TO_ANALYZE;
>
> Is it save to change the value of DEFAULT_MAX_DOC_BYTES_TO_ANALYZE to
> bigger value?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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