繁体   English   中英

对象属性的新手 ArangoSearch 问题

[英]Novice ArangoSearch Issue with object property

我开始测试 ArangoSearch 以在即将推出的功能中使用。 我有一个嵌套的 JSON 字段,我想在嵌套字段上进行令牌搜索。

{ip:{dpdm:{description:<text>}}}

观点是:

{
  "writebufferIdle": 64,
  "type": "arangosearch",
  "writebufferSizeMax": 33554432,
  "consolidationPolicy": {
    "type": "tier",
    "segmentsBytesFloor": 2097152,
    "segmentsBytesMax": 5368709120,
    "segmentsMax": 10,
    "segmentsMin": 1,
    "minScore": 0
  },
  "primarySort": [],
  "globallyUniqueId": "h7437427BB0F0/26371461",
  "id": "26371461",
  "storedValues": [],
  "writebufferActive": 0,
  "consolidationIntervalMsec": 1000,
  "cleanupIntervalStep": 2,
  "commitIntervalMsec": 1000,
  "links": {
    "pmconfig": {
      "analyzers": [
        "identity"
      ],
      "fields": {
        "ip.dpdm.version_notes": {
          "analyzers": [
            "text_en"
          ]
        },
        "ip.digital.feature_list": {
          "analyzers": [
            "text_en"
          ]
        },
        "ip.common.Available-Views": {
          "analyzers": [
            "text_en"
          ]
        },
        "ip.pipeline.comment": {
          "analyzers": [
            "text_en"
          ]
        },
        "ip.dpdm.eccn": {
          "analyzers": [
            "text_en"
          ]
        },
        "ip.dpdm.description": {
          "analyzers": [
            "text_en"
          ]
        },
        "ip.dpdm.maturity_comments": {
          "analyzers": [
            "text_en"
          ]
        }
      },
      "includeAllFields": true,
      "storeValues": "none",
      "trackListPositions": false
    }
  },
  "primarySortCompression": "lz4"
}

以下查询返回 58 个对象: for d in pmconfig filter d.ip.dpdm.description like('% synchronous %') return d

但以下不返回任何项目: for d in v_myView search analyzer(d.ip.dpdm.description in tokens('synchronous', 'text_en'), 'text_en') return d

我确定我做错了什么,但在我看来是对的。 让我继续前进的指针将不胜感激。

我知道我错过了一些东西。 看起来我在指定视图时不应该使用嵌套字段路径。 我需要做的就是将顶级字段“ip”设置为视图中的“text_en”分析器。 现在一切都很好。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM