HI everyone!
I have a lot of fields with XML text and i want to make a query to check if some tags are closed.
In order to do that i'm using the whitespace analyzer (so that i can query for char like "<").
Assuming that i have a field like this one
"example": "<attribute>hi</attribute>"
i tried to query for :
GET myindex/_search
{
"query": {
"regexp": {
"example": {
"value": "</attribute>",
"flags" : "NONE",
"max_determinized_states": 10000,
"rewrite": "constant_score"
}
}
}
}
And i get no hits for it.
I tried to query for attribute and i get the hit...
I tried to query for "<" char like this:
GET prova/_search
{
"query": {
"regexp": {
"ved": {
"value": "'<'",
"flags" : "NONE",
"max_determinized_states": 10000,
"rewrite": "constant_score"
}
}
}
}
i get no hits... i know i'm probably doing something wrong but i can't understand what..
can someone give me an advice?