英文:
TextIndex in MongoDB
问题
我有一个名为“Patient”的文档,具有以下属性:
name
ID
address 1
address 2
city
zip
phone
是否有意义对所有这些字段进行TextIndex,以便我可以从用户界面对任何这些字段进行文本搜索?
英文:
Given, I have a document Patient with following attributes:
name
ID
address 1
address 2
city
zip
phone
Does it make sense to TextIndex all of these fields so that I can do a text search from UI on any of these fields?
专注分享java语言的经验与见解,让所有开发者获益!
评论