Hello, I'm using the Kibana console to perform such queries (they are separated: one for the hashtags, one for the mentions). The collection of documents are blog entries with a textContent field, which may have user mentions like @theUserName @AnotherOne or hashtags like #helloWorld and #hello2. The queries look like the following one:
"source": ["id", "textContent"],
But the problem is it's returning also the documents that do not contain a @userMention. I think the @ in the regex is being treated as a special symbol, but reading the documentation I couldn't find how to escape it.
Inthe docs, the authors say that you can escape any symbol with double quotes, so I tested:
But I got nothing.
I also testes expressions I'm used to, like:
But that produces multiple errors in Kibana. I tried replacing some parts according to the documentation, but it's still not working.
Can you point me in the right direction?
Thanks in advance,