这些是我上传到我的数据库的示例 XML:
<?xml version="1.0" encoding="UTF-8"?>
<AXFRoot>
<MAObject type="default" mdclass="NEWS_VIDEO" label="News Video">
<ID name="">123456</ID>
<Meta name="MAINTITLE" format="string" label="Title">Clifford Irving hugs his wife Edith after her release from a Nassau jail.</Meta>
<Meta name="SYSTEM_OBJECTOWNER" format="string" label="Owner">DEFAULT</Meta>
<Meta name="KEYWORDS" format="string" label="Keywords">clifford-irving edith-irving prisoner-releases 1972-08-18 nassau new-york US nassau-county-jails prisons wifes husbands media, [],</Meta>
</MAObject>
<AXFRoot>
<?xml version="1.0" encoding="UTF-8"?>
<AXFRoot>
<MAObject type="default" mdclass="NEWS_VIDEO" label="News Video">
<ID name="">456123</ID>
<Meta name="MAINTITLE" format="string" label="Title">CAMEL NEWS CARAVAN- SEGMENT 2: US Military women march in Formosa in 1950.</Meta>
<Meta name="SYSTEM_OBJECTOWNER" format="string" label="Owner">DEFAULT</Meta>
<Meta name="KEYWORDS" format="string" label="Keywords">Military women-march Formosa-in-1950 United-States-army US</Meta>
</MAObject>
<AXFRoot>
<?xml version="1.0" encoding="UTF-8"?>
<AXFRoot>
<MAObject type="default" mdclass="NEWS_VIDEO" label="News Video">
<ID name="">78946</ID>
<Meta name="MAINTITLE" format="string" label="Title">Commercial US Title</Meta>
<Meta name="SYSTEM_OBJECTOWNER" format="string" label="Owner">DEFAULT</Meta>
<Meta name="KEYWORDS" format="string" label="Keywords">commercial 2009 english advertisement movie parts</Meta>
</MAObject>
<AXFRoot>
我在这里要做的是,当我通过 /search?q=US 搜索单词 US 时,我希望查询结果在 JSON 中有一个数据字段,其中包含所有包含单词 US 的地方。
例如:数据:{clifford-irving edith-irving 囚犯释放 1972-08-18 nassau new-york 美国 nassau-county-jails 监狱妻子丈夫媒体,[],CAMEL NEWS CARAVAN- SEGMENT 2:美国军人在福尔摩沙游行in 1950.Military women-march Formosa-in-1950 United-United States-army US Commercial US Title}
有没有办法在 MarkLogic 中进行此类查询?