lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Svetov <vsve...@gmail.com>
Subject Re: getBestFragments with SimpleSpanFragmenter
Date Fri, 14 Oct 2016 05:27:26 GMT
Thanks for advice
However I asked about  different API semantic:

String fragments = highlighter.*getBestFragments*(tokenStream, value,
*3*,FRAGMENT_DELIMITER
);

when

          fragmenter = new SimpleSpanFragmenter(queryScorer,*5*);
          highlighter.setTextFragmenter(fragmenter);

Regards


On Thu, Oct 13, 2016 at 7:37 PM, lukes <mail2lokesh@gmail.com> wrote:

> Please pass false to mergeContiguousFragments in
> getBestTextFragments(TokenStream tokenStream, String text, boolean
> mergeContiguousFragments, int maxNumFragments) and it should work as
> expected.
>
> Regards.
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/getBestFragments-with-SimpleSpanFragmenter-
> tp4301065p4301066.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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