Re: getBestFragments with SimpleSpanFragmenter

2016-10-13 Thread lukes
message in context: http://lucene.472066.n3.nabble.com/getBestFragments-with-SimpleSpanFragmenter-tp4301065p4301069.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user

Re: getBestFragments with SimpleSpanFragmenter

2016-10-13 Thread Vladimir Svetov
> -- > 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. > > -

Re: getBestFragments with SimpleSpanFragmenter

2016-10-13 Thread lukes
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

getBestFragments with SimpleSpanFragmenter

2016-10-13 Thread Vladimir Svetov
Hi all, I have the following 2 indexed data for the field, title_t_en: "\"War and Peace\" by \"Leo Tolstoy\" \"Three sisters" by \"Anton Chekhov\"" I am searching by : +((title_t_en:war) (title_t_en:sister)) For every found doc's index *value* the following code is called: