首页 > 其他分享 >Es

Es

时间:2022-11-22 19:13:03浏览次数:30  
标签:product 9200 analyzer comma localhost type Es

1,接触Es查询数量限制

 

localhost:9200/product/_settings  PUT

{   "index.max_result_window":200000 }     2,设置索引逗号拆分   localhost:9200/product/   GET   {     "settings": {
        "analysis": {
            "analyzer": {
                "comma": {
                     "type": "pattern",
                     "pattern":","
                    }
                }
            }
        }
    }   3,给字段设置分词方式  POST localhost:9200/product/_mapping/record?include_type_name=true   {
    "properties": {
    "id": { "type": "string", "index": "not_analyzed" },
    "areaIdSalias": { "type": "string", "analyzer": "comma", "search_analyzer": "comma" }
    } }      

标签:product,9200,analyzer,comma,localhost,type,Es
From: https://www.cnblogs.com/feathe/p/16916135.html

相关文章

  • Codeforces863B-Kayaking
    KayakingVadimisreallykeenontravelling.Recentlyheheardaboutkayakingactivitynearhistownandbecameveryexcitedaboutit,sohejoinedapartyofka......
  • Codeforces862A-Mahmoud and Ehab and the MEX
    MahmoudandEhabandtheMEXDr.EvilkidnappedMahmoudandEhabintheevillandbecauseoftheirperformanceintheEvilOlympiadinInformatics(EOI).Hedeci......
  • Codeforces863C-1-2-3
     Ilyaisworkingforthecompanythatconstructsrobots.Ilyawritesprogramsforentertainmentrobots,andhiscurrentprojectis"Bob",anew-generationgame......
  • Codeforces864A-Fair Game
    FairGamePetyaandVasyadecidedtoplayagame.Theyhave n cards(nBeforethegamePetyawillchooseanintegerandafterthatVasyawillchooseanotherint......
  • Codeforces864B-Polycarp and Letters
    PolycarpandLettersPolycarploveslowercaselettersanddislikesuppercaseones.Oncehegotastring sconsistingonlyoflowercaseanduppercaseLatinlet......
  • Codeforces867B-Save the problem!
    Savetheproblem!Attention:welostallthetestcasesforthisproblem,soinsteadofsolvingtheproblem,weneedyoutogeneratetestcases.We'regoing......
  • 3.【未验证】charles抓包
    安装后会遇到的问题:1.访问带https网站被拦截问题2.访问带https网站出现乱码问题。  怎么配置参看超链接:配置文档 3.手机怎么抓包?参考学习......
  • What a Simple Research
    ProblemF.WhataSimpleResearchDescriptionPekingUniversityStudentFolkMusicBandhasahistoryofmorethan90years.TheyplayChinesetraditionalmusicby......
  • 对 Trojan.DL.Win32.Mnless.yxx / alg.exe 的一点分析
    对Trojan.DL.Win32.Mnless.yxx/alg.exe的一点分析endurer原创2008-02-21第1版就是Worm.Win32.Diskgen.gen/磁碟机也捎带广告?​javascript:void(0)​​中的捕获的一个......
  • es组合查询
    POSTyi_cloud_ecs_monitor/_search{"query":{"bool":{"must":{"terms":{"storage_rate":["0","0"]}......