I have what I think should be easy to do, but am struggling b.c of how REGEX is handled in a DSL query.
I have records that look like this
Main App Name
sub-app1 - (Main App Name)
sub-app2 - (Main App Name)
sub-app3 - (Main App Name)
Main App Name2
sub-app1 - Main App Name2
sub-app2 - Main App Name2
sub-app3 - Main App Name2
I want to do a filter that allows me to only show
Main App Name
Main App Name2
...and anything else that isn't main app (but not the sub-apps).
I tried doing a filter that matched for the parenthesis, but that doesn't seem to work. I also tried doing a filter that matches for the hyphen in front of Main App Name2 sub apps but that doesn't work. Whatever I chose I end up filtering out everything that has main app name and main app name2 or nothing.
I have a data table visualization (for example) with the following records:
I want to query and remove the italicized records and keep the bolded ones.
Workplace Accommodation Request (WPA) - Appian BPM Work Order Authorization - Workflow (Salesforce) Work Order Authorization - Appian BPM Random App Here Salesforce Apps Appian BPM Apps Random App 2
I want to filter out the lines that end with (Salesforce) or "- Appian BPM" but I want to include the two lines that say Salesforce Apps and Appian BPM Apps and anything else (i.e. random app here).
Apologies for the delay, this is trickier than it looks because the supported wildcard queries match based on terms and don't recognize the end of a field.
What potential values might the field have? So far I've been treating it like a freeform text field which is proving difficult to work with. I wonder if a keyword field would work better.
@mattkime I am kind of happy that it isn't as simple as 1-2-3 because I spent a good amount of time trying to get it to work. I don't have a ton of Kibana experience but I've worked with regex's enough to think that this would have been relatively easy going into it but with the way things are anchored (or not anchored) it's proving difficult. The field is a freeform text field. When you say a "keyword" field would work better - how do I go about creating that?
I'll try to summarize the problem, please confirm if its accurate -
You can search by *(Salesforce) but it will find something (Salesforce) something so the wildcard isn't very meaningful. This is with a text field. Its searching for terms in the text regardless of their position.
With a keyword field, the text isn't analyzed. It sees the whole field as a single term/token. This time *(Salesforce) will only match the end of keywords because there's no trailing *.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.