FAQ
Hi,

I'd like to make highlighting work as follows:

length(all snippits) approx. 200 chars
hl.snippits = 2 (2 snippits)

e.g. if there is only 1 snippet available, length <= 200chars
e.g. if there is >1 snippet, length each snippet == 100chars, so I
take the first 2 and get 200 chars

Is this possible with a custom fragmenter?

Or does anyone know of any contrib fragmenter that might do this?

Many thanks
Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

  • Dan sutton at May 25, 2011 at 12:22 pm
    Hi,

    I'd like to make highlighting work as follows:

    length(all snippits) approx. 200 chars
    hl.snippits = 2 (2 snippits)

    e.g. if there is only 1 snippet available, length <= 200chars
    e.g. if there is >1 snippet, length each snippet == 100chars, so I
    take the first 2 and get 200 chars

    Is this possible with a custom fragmenter?

    Or does anyone know of any contrib fragmenter that might do this?

    Many thanks
    Dan

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMay 25, '11 at 12:22p
activeMay 25, '11 at 12:22p
posts2
users1
websitelucene.apache.org

1 user in discussion

Dan sutton: 2 posts

People

Translate

site design / logo © 2022 Grokbase