You have two text fields in your document and you’d like both to be quickly searchable. What should you do?

  •  Create a text index on each field.
  •  MongoDB is not able to do this.
  •  Create a compound text index using both fields.
  •  Create a text index on one field and a single field index on the other.

Leave a Reply

Your email address will not be published. Required fields are marked *