title: PyMongo full text search of items in a list
body: <p>I am looking to do a text search using PyMongo for some items that are embedded within a list. My database is structured as follows:
  <code>{_id:"148319665188372481" }, "tags": ['#123456', '#789012'}</code></p>
  
  <p>I want to search my database specifically for the phrase "123456" but because the items are embedded in  a list... I'm not quite sure how to do that. </p>
  
  <p>Here is my current code:</p>
  
  <pre><code>        accounts.create_index([('tags', pymongo.TEXT)])
          async for something in accounts.find({"$text": {"$search": "123456"}}):
              print('Entered loop')
              print(something)
  </code></pre>