I feel I should know that but I simply cannot find a solution:
I have a table with some search terms. Additionally I have a table with a column with terms that can contain these strings.
I tried several things like the string manipulation node that only takes “direct input” but not from a table (or txt file) for example.
Yes I could connect several string manipulation nodes after one another but what if I have a list of 50 terms instead of 2? Then it would be cumbersome to delete those nodes or add new ones.
Hopefully I could explain clearly what I wanted to do (find multiple search terms in a data table column).
You could have a look at this example with a loop. There might be other ways to do it. I found that the String Manipulation node and also the Rule engine are somewhat ‘unwilling’ when it comes to using Flow Variables in order to search for substrings so I came up with this solution using a constant value column.
Java Snippet could also be used but we want to keep it ‘KNIME-style’.
Note: if your search terms are very complex and contain special characters the solution to use them als variable names might not work, you might have to adapt the solution.
thank you very much for the prompt response. I think I will skip this problem for now as the solution is surely working but it’s far beyond my knowledge. I thought there was an easier solution (not saying yours is bad or something similar) like read a “search terms table and iterate through the value column completely for each term”
You could collect the results in different ways I am sure, it was just to give an example - my other idea would have been to construct a Regex rule but I have not really gone into that.
I’m using the table Indexer Node and the Index Query Node for this…
there I write an OR query such as:
myDocColumn:“Fahrzeuge” OR myDocColumn:“Personen”