国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Field [price] of type [text] is not supported for aggregation [avg]

這篇具有很好參考價(jià)值的文章主要介紹了Field [price] of type [text] is not supported for aggregation [avg]。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

原因:text類型不支持求平均值,改為float

PUT

http://localhost:9201/shopping/_mapping文章來源地址http://www.zghlxwxcb.cn/news/detail-545034.html

{
    "properties":{
        "title":{
            "type": "text", // text 文本類型,可以分詞
            "index": true
        },
        "category": {
            "type":"text", // keyword 關(guān)鍵詞,必須是完整的,不能分詞
            "index": true
        },
        "images": {
            "type": "text",
            "index": true
        },
        "price":{
            "type":"float",
            "index":true
        }
    }
}

到了這里,關(guān)于Field [price] of type [text] is not supported for aggregation [avg]的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • vite配置別名時(shí)遇到錯誤Error: Dynamic require of “path“ is not supported

    vite項(xiàng)目中出現(xiàn)的錯誤Error: Dynamic require of “path” is not supported 因?yàn)関ite中沒有不支持 require() 將 require() 改成 import xxx

    2024年01月21日
    瀏覽(25)
  • require() of ES modules is not supported.ts項(xiàng)目中添加js文件報(bào)錯

    require() of ES modules is not supported.ts項(xiàng)目中添加js文件報(bào)錯

    Must use import to load ES Module: E:1-vue3XXXXXXXXXbook-money.cz-config.js require() of ES modules is not supported. require() of E:1-vue3XXXXXXXXXbook-money.cz-config.js from E:1-vue3XXXXXXXXXbook-moneynode_modulesfind-configsrcfind-config.js is an ES module file as it is a .js file whose nearest parent package.json contains “type”: “modu

    2024年01月16日
    瀏覽(22)
  • Could not extract response: no suitable HttpMessageConverter found for content type [text/html]

    Could not extract response: no suitable HttpMessageConverter found for content type [text/html]

    如果是使用 OpenFeign 進(jìn)行遠(yuǎn)程調(diào)用的時(shí)候,報(bào)以下錯誤 no suitable HttpMessageConverter 可考慮修改 feign 接口,如下,使用注解 @ResponseBody、@RequestBody 在使用 RestTemplate請求調(diào)用的時(shí)候,程序報(bào)錯 報(bào)錯信息如下: 錯誤信息是未知的ContentType,這個(gè)ContentType就是第三方接口返回時(shí)候在H

    2024年02月08日
    瀏覽(21)
  • Thread-local storage is not supported for the current target

    Thread-local storage is not supported for the current target

    xcode編譯時(shí)遇到上述報(bào)錯,解決辦法:調(diào)整最低系統(tǒng)版本配置 ? ?

    2024年02月16日
    瀏覽(21)
  • 解決報(bào)錯TypeError: Object of type int32 is not JSON serializable

    當(dāng)我們嘗試將 numpy int32 對象轉(zhuǎn)換為 JSON 字符串時(shí),會出現(xiàn) Python“TypeError: Object of type int32 is not JSON serializable”。 要解決該錯誤,請先將 numpy int 轉(zhuǎn)換為 Python 整數(shù),然后再將其轉(zhuǎn)換為 JSON,例如 下面是錯誤如何發(fā)生的示例。 我們嘗試將 numpy int32 對象傳遞給 json.dumps() 方法,但

    2024年02月06日
    瀏覽(27)
  • TypeError: ufunc ‘bitwise_and‘ not supported for the input types, and the inputs could not be safely

    這個(gè)錯誤是因?yàn)槟褂昧诉壿嬤\(yùn)算符來執(zhí)行按位與(bitwise and)運(yùn)算,而它不適用于浮點(diǎn)數(shù)類型的輸入數(shù)據(jù)。 要比較兩個(gè)浮點(diǎn)數(shù)是否在一個(gè)范圍內(nèi),您可以使用邏輯運(yùn)算符and,或者使用numpy庫中的logical_and函數(shù)。具體地,您可以按照以下方式更改代碼: 1.使用邏輯運(yùn)算符and來替代

    2024年02月14日
    瀏覽(89)
  • No signature of method: build_*.android() is applicable for argument types

    No signature of method: build_*.android() is applicable for argument types

    意思很直觀:就是build的時(shí)候,android()的參數(shù)錯誤。 更新android studio 后出現(xiàn)這種問題,主要是新版本的生成的app和module模版有所變化引起的。 Android Studio Electric Eel | 2022.1.1 Patch 1 Build #AI-221.6008.13.2211.9514443, built on January 21, 2023 Runtime version: 11.0.15+0-b2043.56-8887301 x86_64 VM: OpenJDK 6

    2024年02月10日
    瀏覽(17)
  • Python-Json異常:Object of type Decimal is not JSON serializable

    使用python分離出一串文本,因?yàn)槭强雌饋硐裾麛?shù),結(jié)果json轉(zhuǎn)換時(shí)發(fā)生異常:TypeError: Object of type Decimal is not JSON serializable decimal格式不能被json.dumps正確處理。json.dumps函數(shù)發(fā)現(xiàn)字典里面有 Decimal類型的數(shù)據(jù),無法JSON serializable 同樣的問題也會出現(xiàn)在轉(zhuǎn)換bytes數(shù)據(jù)時(shí)。 解決方法:

    2024年02月08日
    瀏覽(19)
  • android studio 提示錯誤 “Operation is not supported for read-only collection“

    Android studio從長頸鹿升級到 新版本小刺猬 ,之后 新建項(xiàng)目build 一個(gè)小時(shí)之后運(yùn)行,竟然提示如下錯誤, wtf,嘗試過 新建項(xiàng)目,clean項(xiàng)目,重新build ,清除as 緩存等方法都還是在運(yùn)行時(shí)出現(xiàn)錯誤提示, 猜測是新舊版本存在不兼容的地方,具體哪里也不好定位了, 最后使用重置大

    2024年01月24日
    瀏覽(18)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包