Setting UnifiedHighlighter DefaultPassageFormatter using Elastic and NEST

Multi tool use
up vote
0
down vote
favorite
I'm migrating from Lucene to Elastic (6.2.4).
Today we use Lucene's UnifiedHighlighter and setting the formatter (using setFormatter method) with a DefaultPassageFormatter.
var ht = new UnifiedHighlighter(searcher, CreateSimpleAnalyzer());
ht.setFormatter(new DefaultPassageFormatter(preTag: preTag, postTag: postTag, ellipsis: ellipsis, escape: false));
I could not find a way to do the same in Elastic using NEST.
This is a limitation of Elastic? NEST? or I'm missing something?

add a comment |
up vote
0
down vote
favorite
I'm migrating from Lucene to Elastic (6.2.4).
Today we use Lucene's UnifiedHighlighter and setting the formatter (using setFormatter method) with a DefaultPassageFormatter.
var ht = new UnifiedHighlighter(searcher, CreateSimpleAnalyzer());
ht.setFormatter(new DefaultPassageFormatter(preTag: preTag, postTag: postTag, ellipsis: ellipsis, escape: false));
I could not find a way to do the same in Elastic using NEST.
This is a limitation of Elastic? NEST? or I'm missing something?

add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm migrating from Lucene to Elastic (6.2.4).
Today we use Lucene's UnifiedHighlighter and setting the formatter (using setFormatter method) with a DefaultPassageFormatter.
var ht = new UnifiedHighlighter(searcher, CreateSimpleAnalyzer());
ht.setFormatter(new DefaultPassageFormatter(preTag: preTag, postTag: postTag, ellipsis: ellipsis, escape: false));
I could not find a way to do the same in Elastic using NEST.
This is a limitation of Elastic? NEST? or I'm missing something?

I'm migrating from Lucene to Elastic (6.2.4).
Today we use Lucene's UnifiedHighlighter and setting the formatter (using setFormatter method) with a DefaultPassageFormatter.
var ht = new UnifiedHighlighter(searcher, CreateSimpleAnalyzer());
ht.setFormatter(new DefaultPassageFormatter(preTag: preTag, postTag: postTag, ellipsis: ellipsis, escape: false));
I could not find a way to do the same in Elastic using NEST.
This is a limitation of Elastic? NEST? or I'm missing something?


asked yesterday
Omri
593315
593315
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205228%2fsetting-unifiedhighlighter-defaultpassageformatter-using-elastic-and-nest%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
vn8sI55LxMdTM F JvkBpidG5,BUm1WEnnyJSmXVov