반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

[900gle] Search Template 본문

900gle shopping/api

[900gle] Search Template

닉의네임 2022. 1. 25. 16:14
반응형

흠.. 템플릿도 안되네..

Json 그대로 사용해야하나..

 

Case 1

PUT _scripts/goods-search-template
{
  "script": {
    "lang": "mustache",
    "source": {
      "query": {
        "function_score": {
          "query": {
            "multi_match": {
              "query": "{{query}}",
              "fields": [
                "name",
                "category^2"
              ]
            }
          },
          "functions": [
            {
              "script_score": {
                "script": {
                  "source": "cosineSimilarity(params.query_vector, 'feature_vector') * doc['weight'].value * doc['populr'].value / doc['name'].length + doc['category'].length",
                  "params": {
                    "query_vector": [
                      "{{#query_vector}}",
                      "{{.}}",
                      "{{/query_vector}}"
                    ]
                  }
                }
              },
              "weight": 0.1
            }
          ]
        }
      },
      "from": "{{from}}",
      "size": "{{size}}"
    }
  }
}

결과

 

Case 2

PUT _scripts/goods-search-template
{
  "script": {
    "lang": "mustache",
    "source": {
      "query": {
        "function_score": {
          "query": {
            "multi_match": {
              "query": "{{query}}",
              "fields": [
                "name",
                "category^2"
              ]
            }
          },
          "functions": [
            {
              "script_score": {
                "script": {
                  "source": "cosineSimilarity(params.query_vector, 'feature_vector') * doc['weight'].value * doc['populr'].value / doc['name'].length + doc['category'].length",
                  "params": {
                    "query_vector": "{{#toJson}}query_vector{{/toJson}}" 
                  }
                }
              },
              "weight": 0.1
            }
          ]
        }
      },
      "from": "{{from}}",
      "size": "{{size}}"
    }
  }
}
POST _render/template
{
  "id": "goods-search-template",
  "params": {
    "query": "hello world",
    "query_vector": [
            -0.024421459063887596,
            0.05326506495475769,
            0.014117574319243431,
            0.055020593106746674,
            8.33666417747736E-4,
            0.03552353382110596,
            -0.016905151307582855,
            -0.023045139387249947,
            0.061925966292619705,
            0.02510041370987892,
            -0.04567539691925049,
            -0.035337984561920166,
            0.015189038589596748,
            -0.0951894000172615,
            -0.07785795629024506,
            -0.09563116729259491,
            -0.0346219427883625,
            -0.047427255660295486,
            -0.015531583689153194,
            -0.035366617143154144,
            -0.03459286689758301,
            -0.0495934784412384,
            0.07815495133399963,
            0.04967015981674194,
            0.0013507641851902008,
            -1.4598826237488538E-4,
            0.0033642177004367113,
            -0.05355772376060486,
            -0.07106542587280273,
            0.05851833522319794,
            0.025944774970412254,
            0.01938854344189167,
            0.03400294482707977,
            -0.0016189583111554384,
            -0.02566385082900524,
            9.320267417933792E-5,
            0.005685568321496248,
            -0.013121516443789005,
            0.04150579869747162,
            -0.09313949197530746,
            0.007618842646479607,
            -0.03708312287926674,
            0.08472944796085358,
            0.05075383931398392,
            -0.01859726384282112,
            0.05099262297153473,
            0.03206855058670044,
            0.043710723519325256,
            0.007872949354350567,
            0.050260432064533234,
            -0.03723161295056343,
            -0.006578010506927967,
            0.04897286370396614,
            -0.06604292243719101,
            -0.0572771281003952,
            0.021907465532422066,
            -0.08316279202699661,
            -0.044441428035497665,
            0.03998495265841484,
            -0.02472553588449955,
            0.030714629217982292,
            -0.030755391344428062,
            0.070356085896492,
            0.03254450485110283,
            -0.05972575396299362,
            0.004771773237735033,
            -0.009852680377662182,
            -0.01882164366543293,
            0.023438841104507446,
            -0.04669902101159096,
            0.026955237612128258,
            0.026872510090470314,
            -0.011540164239704609,
            0.006810889579355717,
            -0.07867845147848129,
            0.08879242092370987,
            -0.0028243521228432655,
            0.0348781943321228,
            -0.042403388768434525,
            0.001038338290527463,
            -0.0577554926276207,
            -0.07945943623781204,
            -0.09139955788850784,
            0.01827591098845005,
            -0.016272559762001038,
            0.0026255494449287653,
            0.03830515965819359,
            0.007871244102716446,
            0.01970106177031994,
            -0.04944153502583504,
            0.06738253682851791,
            0.017025204375386238,
            0.05916399508714676,
            -0.055316295474767685,
            -0.02369179017841816,
            0.07721608877182007,
            -0.031520117074251175,
            -0.00794921163469553,
            -0.05607715994119644,
            -0.029100952669978142,
            0.038537852466106415,
            0.003215149277821183,
            -0.02519041858613491,
            0.01831279695034027,
            0.010716966353356838,
            0.0059165130369365215,
            -0.09968291223049164,
            -7.472480647265911E-4,
            -0.03889617323875427,
            0.016232294961810112,
            -0.0022664463613182306,
            0.0447833389043808,
            0.024951307103037834,
            -0.03260749205946922,
            0.008109916932880878,
            -0.09597107768058777,
            0.03034432791173458,
            -0.027274323627352715,
            0.07294220477342606,
            0.03122047707438469,
            -0.05630626901984215,
            -0.030065931379795074,
            0.017595520243048668,
            -0.04618052765727043,
            -0.008604560047388077,
            0.01220710575580597,
            -0.040558550506830215,
            0.006133051589131355,
            0.042622484266757965,
            0.04502307251095772,
            -0.05075936019420624,
            -0.01943656988441944,
            -0.0312829464673996,
            0.045821886509656906,
            0.01576460711658001,
            0.06259322166442871,
            0.007013549562543631,
            -0.027170483022928238,
            -0.059857048094272614,
            -0.06673570722341537,
            0.03865459933876991,
            -0.0056269667111337185,
            0.011906782165169716,
            0.05651848018169403,
            0.0025440228637307882,
            0.012344454415142536,
            0.08029307425022125,
            0.02078757807612419,
            -0.043345529586076736,
            -0.032410670071840286,
            0.03748280927538872,
            0.028244178742170334,
            0.04196317121386528,
            -0.12652899324893951,
            0.0015339397359639406,
            0.016101881861686707,
            -0.025445928797125816,
            -0.024226387962698936,
            0.013026206754148006,
            -0.05967964977025986,
            0.0010419528698548675,
            0.030405087396502495,
            -0.03203524649143219,
            0.012565409764647484,
            0.043810635805130005,
            0.06399598717689514,
            0.02665727213025093,
            -0.009804876521229744,
            0.059615183621644974,
            0.0529247410595417,
            -0.08212129026651382,
            -0.01490022987127304,
            -0.02690233290195465,
            0.027434559538960457,
            0.014732155948877335,
            -0.011248468421399593,
            0.014462273567914963,
            -0.058697786182165146,
            -0.05234779417514801,
            0.028505299240350723,
            0.0010687137255445123,
            0.03678552433848381,
            -0.03535144031047821,
            -0.04465198516845703,
            0.04409384727478027,
            -0.047171756625175476,
            -0.017379343509674072,
            0.06965631991624832,
            -0.031608305871486664,
            0.010660548694431782,
            0.03583065792918205,
            0.05759892240166664,
            -0.05777626112103462,
            0.027706874534487724,
            -0.051619481295347214,
            -0.032918088138103485,
            0.02758784219622612,
            0.016116775572299957,
            0.02729194052517414,
            9.034430840983987E-4,
            0.033529773354530334,
            -0.005061289295554161,
            -0.0736418142914772,
            -0.0369233563542366,
            0.02023230865597725,
            0.01574702374637127,
            -0.05704956129193306,
            0.010835336521267891,
            0.08823531121015549,
            0.00459260493516922,
            -0.0393332839012146,
            0.002447477774694562,
            -0.04775071144104004,
            -0.03698836639523506,
            0.10805169492959976,
            -0.019790126010775566,
            0.08215747028589249,
            -0.054027825593948364,
            0.06271093338727951,
            -0.06713519245386124,
            0.029151497408747673,
            0.05077950283885002,
            0.013775468803942204,
            0.031149115413427353,
            0.011397810652852058,
            -0.01694389618933201,
            0.01625090092420578,
            -1.5055653057061136E-4,
            0.02322540432214737,
            0.025037037208676338,
            -0.037460893392562866,
            -0.016526270657777786,
            -0.017553800716996193,
            -0.013875332660973072,
            0.0984559878706932,
            -0.04127644747495651,
            -0.061269696801900864,
            -0.04219254106283188,
            0.027990147471427917,
            0.03631538897752762,
            0.021432701498270035,
            -0.026977915316820145,
            -0.03808541223406792,
            -0.03610549494624138,
            -0.033149056136608124,
            0.009667759761214256,
            -0.06292900443077087,
            0.05434831976890564,
            0.04807570204138756,
            0.09326692670583725,
            -0.02303864248096943,
            -0.024947205558419228,
            0.01850219815969467,
            -0.059263892471790314,
            -0.009461679495871067,
            -0.06970734149217606,
            0.014520278200507164,
            -0.004679502919316292,
            -0.09070047736167908,
            -0.0533713772892952,
            0.07363943755626678,
            0.013384472578763962,
            0.049324437975883484,
            -0.005870079156011343,
            -0.033510494977235794,
            -0.010341622866690159,
            -0.011960871517658234,
            0.023766154423356056,
            0.015283292159438133,
            0.0020699752494692802,
            0.05010610446333885,
            0.005554895848035812,
            -0.009314518421888351,
            -0.052829284220933914,
            -0.02599208988249302,
            -0.04470691457390785,
            -0.011324122548103333,
            -6.117551820352674E-4,
            0.00565353175625205,
            0.01358636561781168,
            -0.003067529061809182,
            0.02452080510556698,
            0.08409012854099274,
            -0.005790050607174635,
            -0.04474375396966934,
            0.03553644195199013,
            0.06504721194505692,
            -0.003629110986366868,
            0.007668231148272753,
            -0.014174791052937508,
            -0.007775104139000177,
            -0.006108815316110849,
            0.0028382940217852592,
            -0.0029396959580481052,
            0.02523958496749401,
            0.002932435367256403,
            0.006429322995245457,
            -0.028915151953697205,
            0.03770828992128372,
            -0.004956406075507402,
            0.0656803622841835,
            -0.00508654722943902,
            -0.03914264962077141,
            0.0010094591416418552,
            -0.02170247957110405,
            -0.04184752330183983,
            0.0135298240929842,
            -0.044587962329387665,
            0.007292286492884159,
            0.06727101653814316,
            -0.03940969705581665,
            -0.0037290621548891068,
            0.024603642523288727,
            0.0940532311797142,
            -0.004839660599827766,
            0.1102822795510292,
            -0.07096068561077118,
            0.009674317203462124,
            0.024067895486950874,
            -0.08355331420898438,
            0.04347746819257736,
            -0.04096728935837746,
            -0.014950485900044441,
            -0.014216173440217972,
            -0.008757604286074638,
            0.003930775448679924,
            -0.052480462938547134,
            0.022025827318429947,
            3.4533216967247427E-4,
            -0.011668519116938114,
            0.0864284560084343,
            0.030030369758605957,
            -0.04084676876664162,
            0.0384979210793972,
            -0.049768880009651184,
            -0.006918950006365776,
            -0.07473050802946091,
            0.03790389746427536,
            0.0195784755051136,
            -0.022778907790780067,
            0.0568292997777462,
            -0.08102177083492279,
            -0.033419035375118256,
            -0.05024110898375511,
            -0.0031195918563753366,
            -0.034421343356370926,
            0.023646924644708633,
            0.036474842578172684,
            0.03487909585237503,
            -0.010043852962553501,
            -0.06793779879808426,
            0.02681010216474533,
            -0.07696019113063812,
            -0.0013644587015733123,
            0.010800204239785671,
            0.12264303117990494,
            -0.031483035534620285,
            -0.001278346637263894,
            -0.0666947290301323,
            -0.056924283504486084,
            -0.05099206790328026,
            0.007791061419993639,
            0.06479457020759583,
            -0.0013071814319118857,
            0.048186346888542175,
            -0.049642182886600494,
            -0.05892595648765564,
            0.06945641338825226,
            0.04200255870819092,
            -0.06144500523805618,
            -0.03139597550034523,
            0.025285471230745316,
            0.04405521601438522,
            -0.01535552553832531,
            -0.0028531046118587255,
            0.015146669000387192,
            0.01014241948723793,
            0.05393706262111664,
            -0.10550037771463394,
            -0.02562922053039074,
            0.02489892952144146,
            -0.030469883233308792,
            -0.06183052062988281,
            0.024059858173131943,
            -0.041392624378204346,
            -0.06183956563472748,
            0.013236148282885551,
            -0.03308228403329849,
            -0.006844386924058199,
            0.050909388810396194,
            0.008269906975328922,
            6.961903418414295E-4,
            0.05956706032156944,
            -0.043379951268434525,
            0.03328827768564224,
            -0.031923215836286545,
            -0.06870050728321075,
            0.0016588476719334722,
            0.0686468556523323,
            0.09284086525440216,
            0.056923020631074905,
            0.033899664878845215,
            -0.027940252795815468,
            -0.10081114619970322,
            0.018209515139460564,
            -0.05809459462761879,
            0.02625071443617344,
            -0.014857672154903412,
            0.010373723693192005,
            0.023402022197842598,
            0.07288295030593872,
            -0.026924721896648407,
            -0.06921343505382538,
            0.0046803634613752365,
            0.052051156759262085,
            0.06616291403770447,
            0.027053939178586006,
            -0.0010293504456058145,
            0.045112501829862595,
            -0.008501180447638035,
            0.06684711575508118,
            -0.04566102847456932,
            -0.08614277839660645,
            -0.02728820964694023,
            0.08266270160675049,
            0.010002467781305313,
            -0.07143669575452805,
            -0.0635751485824585,
            -0.03151366114616394,
            0.02724611386656761,
            -0.003378370776772499,
            -0.014381248503923416,
            0.06260143965482712,
            0.019004805013537407,
            -0.017393644899129868,
            0.029717642813920975,
            0.05965782329440117,
            0.035096194595098495,
            0.05720648914575577,
            0.038336388766765594,
            0.0010683194268494844,
            0.05351344868540764,
            0.022192852571606636,
            -0.04878215864300728,
            -0.05429688096046448,
            -0.017723048105835915,
            -0.003986576106399298,
            -0.03322887420654297,
            -0.04222629591822624,
            0.06391988694667816,
            0.09048537909984589,
            -0.02599918097257614,
            0.08324092626571655,
            0.06981998682022095,
            -0.05703575536608696,
            0.06820141524076462,
            0.03061077743768692,
            -0.044950634241104126,
            0.019013786688447,
            0.04974977672100067,
            -0.02763824537396431,
            0.032144945114851,
            -0.06566695123910904,
            0.023861974477767944,
            -0.11087271571159363,
            -0.07283775508403778,
            0.06265045702457428,
            -0.0011228505754843354,
            -0.05783632770180702,
            -0.027695368975400925,
            -0.10817999392747879,
            0.041685931384563446,
            0.011914840899407864,
            0.009305882267653942,
            -0.016860386356711388,
            -0.04083724692463875,
            0.06413781642913818,
            0.033997830003499985,
            0.01892591267824173,
            0.019576994702219963,
            -0.058879006654024124,
            -0.0077031198889017105,
            0.040033962577581406,
            0.021768702194094658,
            0.023222729563713074,
            0.07907690852880478,
            -0.06535942107439041,
            -0.00439310260117054,
            -0.02918233349919319,
            -0.01885237917304039,
            0.03071158193051815,
            0.0725841224193573,
            0.010256633162498474,
            0.03301844000816345,
            -0.006262605078518391,
            -0.008239779621362686,
            -0.008602582849562168,
            0.06988268345594406,
            0.014398005791008472,
            -0.006783557124435902,
            -0.005815393291413784,
            0.02441282756626606,
            0.06459841132164001,
            0.04164287820458412,
            -0.05575145408511162,
            0.011761338450014591,
            -0.0341913066804409,
            0.052375782281160355,
            0.0462392196059227,
            0.04656045511364937,
            0.0523286908864975,
            0.01196420006453991
          ],
    "from": 20,
    "size": 10
  }
}

 

결과 

 

{
  "template_output" : {
    "query" : {
      "function_score" : {
        "query" : {
          "multi_match" : {
            "query" : "hello world",
            "fields" : [
              "name",
              "category^2"
            ]
          }
        },
        "functions" : [
          {
            "script_score" : {
              "script" : {
                "source" : "cosineSimilarity(params.query_vector, 'feature_vector') * doc['weight'].value * doc['populr'].value / doc['name'].length + doc['category'].length",
                "params" : {
                  "query_vector" : "[-0.024421459063887596,0.05326506495475769,0.014117574319243431,0.055020593106746674,8.33666417747736E-4,0.03552353382110596,-0.016905151307582855,-0.023045139387249947,0.061925966292619705,0.02510041370987892,-0.04567539691925049,-0.035337984561920166,0.015189038589596748,-0.0951894000172615,-0.07785795629024506,-0.09563116729259491,-0.0346219427883625,-0.047427255660295486,-0.015531583689153194,-0.035366617143154144,-0.03459286689758301,-0.0495934784412384,0.07815495133399963,0.04967015981674194,0.0013507641851902008,-1.4598826237488538E-4,0.0033642177004367113,-0.05355772376060486,-0.07106542587280273,0.05851833522319794,0.025944774970412254,0.01938854344189167,0.03400294482707977,-0.0016189583111554384,-0.02566385082900524,9.320267417933792E-5,0.005685568321496248,-0.013121516443789005,0.04150579869747162,-0.09313949197530746,0.007618842646479607,-0.03708312287926674,0.08472944796085358,0.05075383931398392,-0.01859726384282112,0.05099262297153473,0.03206855058670044,0.043710723519325256,0.007872949354350567,0.050260432064533234,-0.03723161295056343,-0.006578010506927967,0.04897286370396614,-0.06604292243719101,-0.0572771281003952,0.021907465532422066,-0.08316279202699661,-0.044441428035497665,0.03998495265841484,-0.02472553588449955,0.030714629217982292,-0.030755391344428062,0.070356085896492,0.03254450485110283,-0.05972575396299362,0.004771773237735033,-0.009852680377662182,-0.01882164366543293,0.023438841104507446,-0.04669902101159096,0.026955237612128258,0.026872510090470314,-0.011540164239704609,0.006810889579355717,-0.07867845147848129,0.08879242092370987,-0.0028243521228432655,0.0348781943321228,-0.042403388768434525,0.001038338290527463,-0.0577554926276207,-0.07945943623781204,-0.09139955788850784,0.01827591098845005,-0.016272559762001038,0.0026255494449287653,0.03830515965819359,0.007871244102716446,0.01970106177031994,-0.04944153502583504,0.06738253682851791,0.017025204375386238,0.05916399508714676,-0.055316295474767685,-0.02369179017841816,0.07721608877182007,-0.031520117074251175,-0.00794921163469553,-0.05607715994119644,-0.029100952669978142,0.038537852466106415,0.003215149277821183,-0.02519041858613491,0.01831279695034027,0.010716966353356838,0.0059165130369365215,-0.09968291223049164,-7.472480647265911E-4,-0.03889617323875427,0.016232294961810112,-0.0022664463613182306,0.0447833389043808,0.024951307103037834,-0.03260749205946922,0.008109916932880878,-0.09597107768058777,0.03034432791173458,-0.027274323627352715,0.07294220477342606,0.03122047707438469,-0.05630626901984215,-0.030065931379795074,0.017595520243048668,-0.04618052765727043,-0.008604560047388077,0.01220710575580597,-0.040558550506830215,0.006133051589131355,0.042622484266757965,0.04502307251095772,-0.05075936019420624,-0.01943656988441944,-0.0312829464673996,0.045821886509656906,0.01576460711658001,0.06259322166442871,0.007013549562543631,-0.027170483022928238,-0.059857048094272614,-0.06673570722341537,0.03865459933876991,-0.0056269667111337185,0.011906782165169716,0.05651848018169403,0.0025440228637307882,0.012344454415142536,0.08029307425022125,0.02078757807612419,-0.043345529586076736,-0.032410670071840286,0.03748280927538872,0.028244178742170334,0.04196317121386528,-0.12652899324893951,0.0015339397359639406,0.016101881861686707,-0.025445928797125816,-0.024226387962698936,0.013026206754148006,-0.05967964977025986,0.0010419528698548675,0.030405087396502495,-0.03203524649143219,0.012565409764647484,0.043810635805130005,0.06399598717689514,0.02665727213025093,-0.009804876521229744,0.059615183621644974,0.0529247410595417,-0.08212129026651382,-0.01490022987127304,-0.02690233290195465,0.027434559538960457,0.014732155948877335,-0.011248468421399593,0.014462273567914963,-0.058697786182165146,-0.05234779417514801,0.028505299240350723,0.0010687137255445123,0.03678552433848381,-0.03535144031047821,-0.04465198516845703,0.04409384727478027,-0.047171756625175476,-0.017379343509674072,0.06965631991624832,-0.031608305871486664,0.010660548694431782,0.03583065792918205,0.05759892240166664,-0.05777626112103462,0.027706874534487724,-0.051619481295347214,-0.032918088138103485,0.02758784219622612,0.016116775572299957,0.02729194052517414,9.034430840983987E-4,0.033529773354530334,-0.005061289295554161,-0.0736418142914772,-0.0369233563542366,0.02023230865597725,0.01574702374637127,-0.05704956129193306,0.010835336521267891,0.08823531121015549,0.00459260493516922,-0.0393332839012146,0.002447477774694562,-0.04775071144104004,-0.03698836639523506,0.10805169492959976,-0.019790126010775566,0.08215747028589249,-0.054027825593948364,0.06271093338727951,-0.06713519245386124,0.029151497408747673,0.05077950283885002,0.013775468803942204,0.031149115413427353,0.011397810652852058,-0.01694389618933201,0.01625090092420578,-1.5055653057061136E-4,0.02322540432214737,0.025037037208676338,-0.037460893392562866,-0.016526270657777786,-0.017553800716996193,-0.013875332660973072,0.0984559878706932,-0.04127644747495651,-0.061269696801900864,-0.04219254106283188,0.027990147471427917,0.03631538897752762,0.021432701498270035,-0.026977915316820145,-0.03808541223406792,-0.03610549494624138,-0.033149056136608124,0.009667759761214256,-0.06292900443077087,0.05434831976890564,0.04807570204138756,0.09326692670583725,-0.02303864248096943,-0.024947205558419228,0.01850219815969467,-0.059263892471790314,-0.009461679495871067,-0.06970734149217606,0.014520278200507164,-0.004679502919316292,-0.09070047736167908,-0.0533713772892952,0.07363943755626678,0.013384472578763962,0.049324437975883484,-0.005870079156011343,-0.033510494977235794,-0.010341622866690159,-0.011960871517658234,0.023766154423356056,0.015283292159438133,0.0020699752494692802,0.05010610446333885,0.005554895848035812,-0.009314518421888351,-0.052829284220933914,-0.02599208988249302,-0.04470691457390785,-0.011324122548103333,-6.117551820352674E-4,0.00565353175625205,0.01358636561781168,-0.003067529061809182,0.02452080510556698,0.08409012854099274,-0.005790050607174635,-0.04474375396966934,0.03553644195199013,0.06504721194505692,-0.003629110986366868,0.007668231148272753,-0.014174791052937508,-0.007775104139000177,-0.006108815316110849,0.0028382940217852592,-0.0029396959580481052,0.02523958496749401,0.002932435367256403,0.006429322995245457,-0.028915151953697205,0.03770828992128372,-0.004956406075507402,0.0656803622841835,-0.00508654722943902,-0.03914264962077141,0.0010094591416418552,-0.02170247957110405,-0.04184752330183983,0.0135298240929842,-0.044587962329387665,0.007292286492884159,0.06727101653814316,-0.03940969705581665,-0.0037290621548891068,0.024603642523288727,0.0940532311797142,-0.004839660599827766,0.1102822795510292,-0.07096068561077118,0.009674317203462124,0.024067895486950874,-0.08355331420898438,0.04347746819257736,-0.04096728935837746,-0.014950485900044441,-0.014216173440217972,-0.008757604286074638,0.003930775448679924,-0.052480462938547134,0.022025827318429947,3.4533216967247427E-4,-0.011668519116938114,0.0864284560084343,0.030030369758605957,-0.04084676876664162,0.0384979210793972,-0.049768880009651184,-0.006918950006365776,-0.07473050802946091,0.03790389746427536,0.0195784755051136,-0.022778907790780067,0.0568292997777462,-0.08102177083492279,-0.033419035375118256,-0.05024110898375511,-0.0031195918563753366,-0.034421343356370926,0.023646924644708633,0.036474842578172684,0.03487909585237503,-0.010043852962553501,-0.06793779879808426,0.02681010216474533,-0.07696019113063812,-0.0013644587015733123,0.010800204239785671,0.12264303117990494,-0.031483035534620285,-0.001278346637263894,-0.0666947290301323,-0.056924283504486084,-0.05099206790328026,0.007791061419993639,0.06479457020759583,-0.0013071814319118857,0.048186346888542175,-0.049642182886600494,-0.05892595648765564,0.06945641338825226,0.04200255870819092,-0.06144500523805618,-0.03139597550034523,0.025285471230745316,0.04405521601438522,-0.01535552553832531,-0.0028531046118587255,0.015146669000387192,0.01014241948723793,0.05393706262111664,-0.10550037771463394,-0.02562922053039074,0.02489892952144146,-0.030469883233308792,-0.06183052062988281,0.024059858173131943,-0.041392624378204346,-0.06183956563472748,0.013236148282885551,-0.03308228403329849,-0.006844386924058199,0.050909388810396194,0.008269906975328922,6.961903418414295E-4,0.05956706032156944,-0.043379951268434525,0.03328827768564224,-0.031923215836286545,-0.06870050728321075,0.0016588476719334722,0.0686468556523323,0.09284086525440216,0.056923020631074905,0.033899664878845215,-0.027940252795815468,-0.10081114619970322,0.018209515139460564,-0.05809459462761879,0.02625071443617344,-0.014857672154903412,0.010373723693192005,0.023402022197842598,0.07288295030593872,-0.026924721896648407,-0.06921343505382538,0.0046803634613752365,0.052051156759262085,0.06616291403770447,0.027053939178586006,-0.0010293504456058145,0.045112501829862595,-0.008501180447638035,0.06684711575508118,-0.04566102847456932,-0.08614277839660645,-0.02728820964694023,0.08266270160675049,0.010002467781305313,-0.07143669575452805,-0.0635751485824585,-0.03151366114616394,0.02724611386656761,-0.003378370776772499,-0.014381248503923416,0.06260143965482712,0.019004805013537407,-0.017393644899129868,0.029717642813920975,0.05965782329440117,0.035096194595098495,0.05720648914575577,0.038336388766765594,0.0010683194268494844,0.05351344868540764,0.022192852571606636,-0.04878215864300728,-0.05429688096046448,-0.017723048105835915,-0.003986576106399298,-0.03322887420654297,-0.04222629591822624,0.06391988694667816,0.09048537909984589,-0.02599918097257614,0.08324092626571655,0.06981998682022095,-0.05703575536608696,0.06820141524076462,0.03061077743768692,-0.044950634241104126,0.019013786688447,0.04974977672100067,-0.02763824537396431,0.032144945114851,-0.06566695123910904,0.023861974477767944,-0.11087271571159363,-0.07283775508403778,0.06265045702457428,-0.0011228505754843354,-0.05783632770180702,-0.027695368975400925,-0.10817999392747879,0.041685931384563446,0.011914840899407864,0.009305882267653942,-0.016860386356711388,-0.04083724692463875,0.06413781642913818,0.033997830003499985,0.01892591267824173,0.019576994702219963,-0.058879006654024124,-0.0077031198889017105,0.040033962577581406,0.021768702194094658,0.023222729563713074,0.07907690852880478,-0.06535942107439041,-0.00439310260117054,-0.02918233349919319,-0.01885237917304039,0.03071158193051815,0.0725841224193573,0.010256633162498474,0.03301844000816345,-0.006262605078518391,-0.008239779621362686,-0.008602582849562168,0.06988268345594406,0.014398005791008472,-0.006783557124435902,-0.005815393291413784,0.02441282756626606,0.06459841132164001,0.04164287820458412,-0.05575145408511162,0.011761338450014591,-0.0341913066804409,0.052375782281160355,0.0462392196059227,0.04656045511364937,0.0523286908864975,0.01196420006453991]"
                }
              }
            },
            "weight" : 0.1
          }
        ]
      }
    },
    "from" : "20",
    "size" : "10"
  }
}

 

아.. 써글 저거.. 따옴표에서 빼내야 하는데..

 

반응형

'900gle shopping > api' 카테고리의 다른 글

[900] Java High Level REST Client Query 3  (0) 2022.01.27
[900gle] Java High Level REST Client Query 2  (0) 2022.01.26
[900] Java High Level REST Client Query  (0) 2022.01.24
[900] Search API  (0) 2022.01.19
[900gle] Text embedding API  (0) 2022.01.19
Comments