Tag: marklogic 8

Marklogic 8 Node.js API – 如何范围search一个属性的子根目录?

[更新于28/09/17 17:15] 我正在操纵types的json数据: [ { "id": 1, "title": "Sun", "seeAlso": [ { "id": 2, "title": "Rain" }, { "id": 3, "title": "Cloud" } ] }, { "id": 2, "title": "Rain", "seeAlso": [ { "id": 3, "title": "Cloud" } ] }, { "id": 3, "title": "Cloud", "seeAlso": [ { "id": 1, "title": "Sun" } ] }, […]

Marklogic 8 Node.js API – 短语search

我试图应用search电影标题使用结构化查询应用于JSON对象。 我们来想象一下名为“Marius et Jeannette”的电影。 db.documents.query( qb.where( qb.word('title','Marius') ) 要么 db.documents.query( qb.where( qb.word('title','Marius et Jeannette') ) 都给出了结果。 但 db.documents.query( qb.where( qb.word('title','Marius Jeannette') ) 才不是。 有没有办法使用node.js APIconfiguration“近查询”? 我没有在文档中find关于这个主题的任何内容。