I want to implement a simple search in my application based on the search query that I have. Let's say I have an array containing 2 paragraphs or articles, and I want to search in these articles for related topics or related keywords that I entered.
For instance:
string mySearchQuery = "how to play with matches";
string[] myarticles = new string[] {"article 1: this article will teach newbies how to start fire by playing with the awesome matches..", "article 2: this article doesn't contain anything"};
How can I get the first article based on the search query presented above? Any idea?
source
share