title: LINQ query to match multiple words
body: <p>I've been trying to solve this problem all day, and haven't found a solution that truly works. When I search for some data, I want to filter out the data based on multiple words.</p>
  
  <p>My input value is split up by using the standard .Split-function.</p>
  
  <pre><code>string[] searchstrings = MessageResult.Split(' ');
  </code></pre>
  
  <p>I've made a query (which obviously doesn't work properly) that tries to filter out all the entries that matches every string in searchstrings.</p>
  
  <pre><code>                    var suggestions = (from a in query
                                 from w in searchstrings
                                 where a.Message.ToLower().Contains(w.ToLower())
                                 select a).Distinct();
  </code></pre>
  
  <p>query is my variable which has all the data. How can I make this query to actually only match out entries that includes every string in searchstrings?</p>