Beidermorse encoder does not support "replace" option
Beidermorse encoder does not support "replace" option: only new tokens will be returned. One of the backfires is that highlighting will not work. This is actually because Lucene's beidermorse filter does not support this option. Please consider to update documentation by specifying which encore support `"replace : false"` option. Closes #22. (cherry picked from commit c307877)
This commit is contained in:
parent
868fd81d73
commit
39feb530d8
35
README.md
35
README.md
|
@ -28,25 +28,30 @@ A `phonetic` token filter that can be configured with different `encoder` types:
|
|||
The `replace` parameter (defaults to `true`) controls if the token processed
|
||||
should be replaced with the encoded one (set it to `true`), or added (set it to `false`).
|
||||
|
||||
{
|
||||
"index" : {
|
||||
"analysis" : {
|
||||
"analyzer" : {
|
||||
"my_analyzer" : {
|
||||
"tokenizer" : "standard",
|
||||
"filter" : ["standard", "lowercase", "my_metaphone"]
|
||||
}
|
||||
},
|
||||
"filter" : {
|
||||
"my_metaphone" : {
|
||||
"type" : "phonetic",
|
||||
"encoder" : "metaphone",
|
||||
"replace" : false
|
||||
}
|
||||
```js
|
||||
{
|
||||
"index" : {
|
||||
"analysis" : {
|
||||
"analyzer" : {
|
||||
"my_analyzer" : {
|
||||
"tokenizer" : "standard",
|
||||
"filter" : ["standard", "lowercase", "my_metaphone"]
|
||||
}
|
||||
},
|
||||
"filter" : {
|
||||
"my_metaphone" : {
|
||||
"type" : "phonetic",
|
||||
"encoder" : "metaphone",
|
||||
"replace" : false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Note that `beidermorse` does not support `replace` parameter.
|
||||
|
||||
|
||||
Questions
|
||||
---------
|
||||
|
|
Loading…
Reference in New Issue