Beginner's question: I have a column with free text sentences, and I'm trying to draw a particular keyword out of this column and create a new column out of that particular keyword. How would I go about doing that? A GREL command?
Beginner's question: I have a column with free text sentences, and I'm trying to draw a particular keyword out of this column and create a new column out of that particular keyword. How would I go about doing that? A GREL command?
As usual there are several options for this.
Facets & Filtering
GREL
Note that
findwill directly place the found keyword into the new column, whereascontainswill add a boolean marker (trueorfalse) indicating whether the keyword is present or not.Beware that you might have to tweak the keyword searching based on the properties of your free text to avoid matching substrings. Meaning that "soft" will also match "software". Depending on your keyword and text properties you might want to have a look into regular expressions. Regular expressions are supported in the mentioned GREL functions and in the above mentioned text filter.