lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From katoo <>
Subject Solr cuts highlighted sentences
Date Wed, 04 Dec 2013 11:42:47 GMT
Hi guys,

when searching for a phrase I get results and would like to show a
The highlightings beeing shown begin somewhere in the sentence, beginning
with a coma or something else.
I'd like to get highlightings beginning with a stence.
How to manage this.
I've tried so many things found in internet, but nothing helped.

query.setHighlight(true).setParam("hl.useFastVectorHighlighte", "true");
query.setHighlight(true).setParam("hl.fragsize", "500");
query.setHighlight(true).setParam("hl.fragmenter", "regex");
query.setHighlight(true).setParam("hl.regex.slop", "0.8");
"[\\w][^.!?]{400,600}[.!?]"); //\w[^\.!\?]{400,600}[\.!\?]
query.setHighlight(true).setParam("", "SENTENCE");

etc etc..
Whats wrong about this?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message