我试图在arangojs中创建一个ArangoSearchView,但是我不知道如何设置视图属性。这是我的代码:
const link = {
includeAllFields: true,
fields: { val: { analyzers: ["text_en"] } },
storeValues: "val"
};
const view = _db.view(`${_viewName}`);
await view.create({ links: {mergeDB : link } });然而,我得到了这样的结果:

发布于 2020-11-20 03:09:14
正如错误说明的那样,这是storeValue字段的问题
根据文档,值应该是none (默认值)或id
storeValues (optional; type: string; default: "none")
This property controls how the view should keep track of the attribute values. Valid values are:
none: Do not store value meta data in the View.
id: Store information about value presence to allow use of the EXISTS() function.
Not to be confused with storedValues, which stores attribute values in the View index.请注意,还有其他参数名为storedValues,但它是顶级字段(与links相同级别)
https://stackoverflow.com/questions/64921644
复制相似问题