在MongoDB中的文本索引

huangapple 未分类评论45阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2020年4月6日 03:11:51
  • 转载请务必保留本文链接:https://java.coder-hub.com/61048070.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定