考虑像这样的文件
{ firstName: "Jack", lastName: "Smith"}
和
{firstName: "Simon", lastName"Jackson"}
建立“自由文本”的搜索索引 - 我可以这样做:
for(var key in doc)
index("default", doc[key], {"store":true});
//e.g. resulting field = default:["Jack", "Smith"]
或者
var indexString = "";
for(var key in doc)
indexString += " " + doc[key];
index("default", indexString, {"store":true});
//e.g. resulting field = default:"Jack Smith"
是否存在性能/搜索质量差异?