title: How to search for documents with text having character at given position
body: <p>For the fun, I was thinking of doing a small &quot;helper&quot; for wordle games. I will probably not published it, but I was searching for a small thing to do with a react + backend app, so it would be a nice test.</p>
  <p>Therefore I would need to store a list of word of 5 letters and I would like to search every word with the letter &quot;y&quot; at the position &quot;3&quot; and e at the position &quot;5&quot;(for example). But I'm not so sure on how to do this with such request:</p>
  <pre><code>db.stores.find( { $text: { $search: &quot;java&quot; } } )
  </code></pre>
  <p>Is it possible to do this?</p>
  <p>I would also need to be able to make sure the text doesn't contain some given letter or contain another at a given position.</p>