Suppose I have a list of employee names from a database (in the near future, thousands, perhaps tens of thousands). To simplify the task, suppose that each firstname / lastname combination is unique (large if, but tangent).
I also have a news feed that relates to business (again, maybe in hundreds of items per day).
What I would like to do is to determine whether the name of the employee appears in the news item of several paragraphs, and if so, then "tag" the item with the person he is talking about.
There can be more than one employee in one news item, so breaking the cycle after the first positive match is not possible.
I can, of course, use brute force: for each news item, iterate over each employee’s name and, if the regex expression returns a match, pay attention to it.
Is there an easier way in ColdFusion, or should I just do my nested loops?
source share