mirror of
https://github.com/simon987/sist2.git
synced 2025-04-18 01:36:42 +00:00
Correct typos in example
Correct typos in examples.
This commit is contained in:
parent
648559cedb
commit
9bad515e06
@ -39,7 +39,7 @@ it adds the `genre.<genre>` tag.
|
|||||||
ArrayList tags = ctx._source.tag = new ArrayList();
|
ArrayList tags = ctx._source.tag = new ArrayList();
|
||||||
|
|
||||||
if (ctx._source?.genre != null) {
|
if (ctx._source?.genre != null) {
|
||||||
tags.add("genre." + ctx._source.genre.toLowerCase())
|
tags.add("genre." + ctx._source.genre.toLowerCase());
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ ArrayList tags = ctx._source.tag = new ArrayList();
|
|||||||
|
|
||||||
Matcher m = /[\(\.+](20[0-9]{2})[\)\.+]/.matcher(ctx._source.name);
|
Matcher m = /[\(\.+](20[0-9]{2})[\)\.+]/.matcher(ctx._source.name);
|
||||||
if (m.find()) {
|
if (m.find()) {
|
||||||
tags.add("year." + m.group(1))
|
tags.add("year." + m.group(1));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user