Created
October 29, 2014 15:14
-
-
Save loren/ccc146390f05f7e4df51 to your computer and use it in GitHub Desktop.
Spelling suggestion based on bigram field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"suggest": { | |
"text": "jeferson memorial", | |
"suggestion": { | |
"phrase": { | |
"analyzer": "bigram_analyzer", | |
"field": "bigram", | |
"size": 1, | |
"direct_generator": [ | |
{ | |
"field": "bigram", | |
"prefix_len": 1 | |
} | |
], | |
"highlight": { | |
"pre_tag": "<strong>", | |
"post_tag": "<\/strong>" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment