简体   繁体   English

如何检查 vespa 文档中不存在的字段

[英]How to check not exist field in document in vespa

curl --location --request POST 'http://xxxxxx/search/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "offset": 0,
    "hits": 60,
    "ranking.softtimeout.factor": 0.7,
    "ranking.profile": "default",
    "yql": "select id, origin_id from mt_challenge where best_score = \"null\";",
    "timeout": "1500ms",
    "request_timeout": 5
}'

best_score field is float type how to checkout all document with not exist best_score field best_score 字段是浮点类型如何签出所有不存在 best_score 字段的文档

Sorry but NaN/null values are not searchable so this is currently not supported.抱歉,NaN/null 值不可搜索,因此目前不支持。 Using a default value at ingestion time which does not conflict with your real data can be used to work around this.在摄取时使用与您的真实数据不冲突的默认值可用于解决此问题。

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

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