-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
Description
The plain highlighter exposes the ability how text should be broken up in highlight snippets. There are two possible options:
simple- Breaks up text into same sized fragments.span- Same as thesimplefragmenter, but tries not to break up text between highlighted terms (this is applicable when using phrase like queries). This is the default.
Example
curl -XGET 'localhost:9200/_search' -d '{
"query" : {
"match" : {
"body" : {
"some text"
}
}
},
"highlight":{
"fields":{
"body":{
"fragment_size":200,
"fragmenter" : "simple"
}
}
}
}'