R
if (doc['text.keyword'].size() != 0) {
return doc['text.keyword'].value
}
Size: a a a
R
if (doc['text.keyword'].size() != 0) {
return doc['text.keyword'].value
}
D
def p = doc['nginx.access.url.keyword'].value;что не так?
if (p != '/') {
int lastSlashIndex = p.lastIndexOf('/');
if (lastSlashIndex > 0) {
return p.substring(0, lastSlashIndex);
}
}
if (doc['nginx.access.url.keyword'].size() != 0) {
return doc['nginx.access.url.keyword'].value;
}
return "";
R
R
def p = doc['nginx.access.url.keyword'].value;что не так?
if (p != '/') {
int lastSlashIndex = p.lastIndexOf('/');
if (lastSlashIndex > 0) {
return p.substring(0, lastSlashIndex);
}
}
if (doc['nginx.access.url.keyword'].size() != 0) {
return doc['nginx.access.url.keyword'].value;
}
return "";
R
if (doc['nginx.access.url.keyword'].size() != 0) {
if (p != '/') {
int lastSlashIndex = p.lastIndexOf('/');
if (lastSlashIndex > 0) {
return p.substring(0, lastSlashIndex);
}
}
return doc['nginx.access.url.keyword'].value;
R
D
if (doc['nginx.access.url.keyword'].size() != 0) {
if (p != '/') {
int lastSlashIndex = p.lastIndexOf('/');
if (lastSlashIndex > 0) {
return p.substring(0, lastSlashIndex);
}
}
return doc['nginx.access.url.keyword'].value;
t
DS
DS