Consolify docs/reference/analysis/tokenfilters/pattern-capture-tokenfilter.asciidoc. (#23050)

This commit is contained in:
Adrien Grand 2017-02-13 11:00:12 +01:00 committed by GitHub
parent de94c1253a
commit f3509b8003

View File

@ -46,7 +46,7 @@ This is particularly useful for indexing text like camel-case code, eg
[source,js]
--------------------------------------------------
curl -XPUT localhost:9200/test/ -d '
PUT test
{
"settings" : {
"analysis" : {
@ -69,8 +69,8 @@ curl -XPUT localhost:9200/test/ -d '
}
}
}
'
--------------------------------------------------
// CONSOLE
When used to analyze the text
@ -87,7 +87,7 @@ Another example is analyzing email addresses:
[source,js]
--------------------------------------------------
curl -XPUT localhost:9200/test/ -d '
PUT test
{
"settings" : {
"analysis" : {
@ -112,8 +112,8 @@ curl -XPUT localhost:9200/test/ -d '
}
}
}
'
--------------------------------------------------
// CONSOLE
When the above analyzer is used on an email address like: