Skip to content

Instantly share code, notes, and snippets.

@navneet1v
Last active July 30, 2024 21:55
Show Gist options
  • Save navneet1v/5e1c0d896be025a1a9a84b5ff0c3f609 to your computer and use it in GitHub Desktop.
Save navneet1v/5e1c0d896be025a1a9a84b5ff0c3f609 to your computer and use it in GitHub Desktop.
Figma Query
{
"size": 200,
"query": {
"script_score": {
"query":{
"bool": {
"must": [
{
"term": {
"file_type": {
"value": "design",
"boost": 1
}
}
},
{
"terms": {
"team_id": [
966243910340808000
],
"boost": 1
}
},
{
"bool": {
"should": [
{
"terms": {
"team_id": [
"1166771092942260990",
"966243910340807980"
],
"boost": 1
}
},
{
"terms": {
"folder_id": [
"14611351",
"219051816"
],
"boost": 1
}
},
{
"terms": {
"file_id": [
482416404,
632912159,
99185935,
562297629,
768493341,
778058970,
853254223,
791447711,
471001511,
628662432,
768594290,
853249836,
497103335,
630945919,
625063771,
627079201,
525589573,
524687911,
633092663,
629541706,
280841690,
482966217,
627079521,
353090926,
572948498,
468141654,
570120800,
627823198,
633088135,
627478667,
497871953,
753612589,
226016575,
627687623,
570121027,
777301605,
390966695,
572949462,
59975458,
536606404,
787739735,
768520567,
628662192,
393585372,
502249168,
627705897,
573365267,
519387573,
554901919,
628661483,
384984986,
798738834,
786726221,
384273310,
471882963,
497126725,
498515556,
729068626,
619528235,
503270319,
789652507,
842957050,
629542909,
525602556,
568303629,
384984164,
266672678,
627737791,
854086268,
632333893,
800448244,
498381067,
384986220,
497081352,
377507037,
627707453,
782890701,
279825351,
473503698,
562311988,
780592658,
629546955,
482965276,
353090923,
78244680,
768464659,
554902525,
511010013,
629302742,
626056871,
570859889,
573091392,
777083930,
793284654,
582192213,
885564719,
646811784,
551909845,
592290612,
625083347,
572948629,
793040892,
890695991,
845636602,
573092804,
753609039,
516319048,
515785027,
791447276,
59981760,
498381901,
575186332,
573093153,
627691968,
625841949,
778734603,
729031459,
629495838,
574418399,
571356236,
377508858,
491963371,
503271304,
575175941,
575197048,
498381059,
504003835,
778073870,
404276420,
487593738,
621682409,
530271523,
498514814,
421182102,
786820220,
498381692,
625760315,
60413915,
280865022,
630261598,
59975457,
793109488,
592294135,
502241389,
627080905,
384994737,
503332521,
630287036,
853253080,
384986205,
570123962,
571363208,
524685609,
627080119,
384984175,
524153255,
640278196,
103054260,
497103326,
625760136,
60414737,
468141660,
853249005,
628569038,
497079318,
627478213,
555573658,
798713757,
377674486,
498382250,
554815233,
418154247,
766938893,
418152981,
627823358,
562237335,
629542106,
729221098,
855998944,
729221190,
59975461,
570122661,
516320183,
768463494
],
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
}
],
"must_not": [
{
"exists": {
"field": "parent_org_id",
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"script": {
"source": "knn_score",
"lang": "knn",
"params": {
"field": "clip_huge_a_image_embedding",
"query_value": [
-0.0107040405,
-0.006969452,
0.012878418,
0.0423584,
0.007217407,
0.0034694672,
0.041290283,
0.005558014,
0.03378296,
-0.016189575,
0.036254883,
-0.04083252,
0.001499176,
-0.0026760101,
0.033813477,
-0.05645752,
0.044281006,
-0.06939697,
0.00491333,
0.05960083,
-0.0027427673,
-0.018508911,
-0.026000977,
0.008674622,
-0.007610321,
0.0018043518,
0.03173828,
-0.07720947,
0.052459717,
0.023880005,
0.016433716,
0.07495117,
0.0004234314,
0.006587982,
-0.022598267,
-0.010002136,
-0.023223877,
-0.0053977966,
0.030166626,
0.024429321,
0.0000014305115,
-0.026870728,
0.045013428,
-0.01247406,
-0.032928467,
-0.0087509155,
0.044433594,
0.008529663,
-0.04916382,
-0.024902344,
-0.026428223,
-0.010093689,
-0.0006079674,
-0.021591187,
-0.030700684,
0.027694702,
-0.01689148,
-0.02609253,
-0.020904541,
0.015296936,
0.00020480156,
0.013259888,
-0.022979736,
-0.018737793,
-0.013641357,
0.04196167,
-0.004398346,
-0.019317627,
-0.0053977966,
0.04888916,
-0.0045051575,
0.0047035217,
-0.029754639,
-0.020339966,
0.023864746,
0.02708435,
-0.029037476,
0.0037403107,
-0.024276733,
-0.024978638,
-0.02041626,
0.030197144,
-0.044128418,
-0.019805908,
0.023986816,
-0.014640808,
0.061279297,
0.009346008,
-0.012252808,
-0.05441284,
-0.043395996,
0.007865906,
-0.015396118,
-0.015777588,
0.021255493,
-0.002412796,
-0.048095703,
-0.045562744,
-0.0071983337,
0.05545044,
-0.003314972,
-0.017227173,
-0.040863037,
0.036743164,
-0.054107666,
0.0057144165,
0.024856567,
0.028427124,
0.01171875,
-0.083862305,
0.0008378029,
0.010299683,
0.026870728,
-0.010795593,
0.018753052,
0.040924072,
-0.016433716,
-0.013687134,
0.04449463,
-0.013633728,
0.00062036514,
0.053497314,
0.012199402,
-0.02130127,
-0.03503418,
0.0045814514,
-0.0022468567,
-0.032073975,
-0.040771484,
0.045440674,
-0.049713135,
-0.020339966,
0.040527344,
-0.004432678,
-0.044799805,
-0.022491455,
-0.016677856,
-0.0032749176,
-0.013679504,
0.030014038,
-0.01071167,
0.017730713,
0.0042915344,
-0.0040893555,
0.0029792786,
-0.028579712,
-0.009155273,
-0.052337646,
0.025222778,
0.0049819946,
0.03024292,
0.05130005,
0.049224854,
-0.019195557,
0.020233154,
0.03781128,
-0.008178711,
0.030349731,
-0.012779236,
0.020019531,
-0.007865906,
0.054382324,
0.0076942444,
-0.008522034,
0.02468872,
-0.0077285767,
0.00072193146,
-0.029647827,
-0.017974854,
-0.040039062,
0.00071525574,
0.016815186,
-0.036499023,
0.009208679,
-0.015144348,
-0.037750244,
-0.012573242,
-0.014907837,
-0.058624268,
0.014694214,
-0.0236969,
0.027282715,
-0.050872803,
0.07745361,
0.0010604858,
0.05429077,
0.030776978,
0.015426636,
-0.00032758713,
-0.033813477,
-0.010002136,
-0.0073509216,
0.00022113323,
0.0059127808,
-0.012420654,
-0.00484848,
-0.005420685,
-0.003643036,
0.0385437,
0.02670288,
0.023208618,
0.0016813278,
0.045776367,
-0.046875,
0.015686035,
-0.032562256,
-0.00080776215,
0.038879395,
-0.060302734,
0.011161804,
0.0029888153,
0.039611816,
0.06890869,
-0.023132324,
0.046569824,
0.020904541,
-0.017242432,
-0.042175293,
-0.0032482147,
0.0004491806,
-0.030258179,
-0.009750366,
-0.015136719,
-0.08679199,
-0.0030078888,
-0.015106201,
0.022460938,
-0.0030670166,
-0.056396484,
-0.0012512207,
0.0027885437,
-0.035736084,
-0.015029907,
0.03567505,
-0.00088596344,
-0.00065374374,
0.05581665,
-0.00045585632,
0.008995056,
0.054656982,
-0.064575195,
-0.04324341,
-0.017089844,
-0.0005745888,
0.08703613,
0.003709793,
0.053466797,
0.036346436,
-0.006023407,
0.0043563843,
-0.03164673,
0.028915405,
0.036224365,
0.08880615,
-0.07928467,
0.0042419434,
0.0435791,
-0.00806427,
0.0011463165,
-0.008834839,
0.0049591064,
0.046539307,
-0.012489319,
0.024154663,
0.023071289,
-0.03564453,
-0.0043945312,
0.018569946,
-0.047424316,
0.005466461,
0.033172607,
-0.015342712,
-0.02709961,
-0.018569946,
-0.051361084,
0.027069092,
0.0035934448,
0.015083313,
0.023330688,
0.006565094,
-0.08465576,
0.019882202,
0.007671356,
-0.047210693,
0.01612854,
-0.0070152283,
-0.044067383,
-0.036315918,
-0.003967285,
0.0000051259995,
-0.008422852,
-0.0104522705,
0.056121826,
-0.012870789,
0.018295288,
-0.022247314,
0.07421875,
0.03692627,
-0.0016040802,
-0.021514893,
0.047332764,
-0.014030457,
0.007095337,
0.008674622,
-0.019500732,
0.04244995,
0.0132369995,
0.032165527,
-0.0067710876,
-0.012039185,
-0.023345947,
-0.06536865,
-0.019973755,
0.027755737,
-0.038238525,
-0.024978638,
0.011955261,
0.04360962,
0.027893066,
-0.0075263977,
-0.009277344,
0.02494812,
-0.0021362305,
-0.039367676,
0.0032787323,
-0.01637268,
0.021148682,
-0.018127441,
0.026641846,
-0.022216797,
-0.0027179718,
0.04067993,
-0.054473877,
0.02407837,
0.021484375,
0.018508911,
-0.015823364,
0.0019702911,
-0.015701294,
-0.015388489,
-0.043762207,
-0.011054993,
-0.020706177,
0.018798828,
0.012374878,
0.021697998,
0.006668091,
-0.08544922,
0.03302002,
0.00076675415,
0.044830322,
-0.028564453,
-0.008056641,
-0.010795593,
0.022659302,
-0.036468506,
-0.017822266,
-0.017623901,
0.010765076,
-0.02949524,
0.03427124,
-0.00029540062,
-0.026290894,
0.0030517578,
-0.010444641,
0.025741577,
0.047332764,
0.018157959,
0.028915405,
0.018218994,
-0.03567505,
-0.02909851,
-0.005706787,
-0.038208008,
-0.0011100769,
-0.049743652,
0.020065308,
-0.024002075,
-0.03540039,
0.009529114,
-0.03262329,
0.014587402,
0.015487671,
0.0035991669,
-0.048858643,
0.015029907,
-0.018875122,
0.034057617,
-0.033721924,
-0.022064209,
-0.00028920174,
0.011520386,
0.00856781,
-0.045135498,
0.0068511963,
-0.016937256,
0.005683899,
0.008651733,
0.010871887,
-0.02760315,
-0.027420044,
-0.014099121,
-0.018066406,
-0.087890625,
0.009811401,
0.023986816,
-0.048187256,
0.046569824,
-0.019317627,
-0.010665894,
0.054107666,
-0.03717041,
-0.036376953,
-0.002281189,
0.014076233,
-0.012329102,
-0.0047187805,
-0.051971436,
-0.04638672,
-0.0054130554,
0.03366089,
0.008262634,
0.031829834,
0.008888245,
-0.042877197,
-0.017440796,
-0.00024056435,
-0.00023937225,
0.03338623,
0.06958008,
-0.0007100105,
0.008354187,
-0.012840271,
-0.020080566,
-0.019500732,
0.023101807,
0.022949219,
-0.05596924,
-0.010269165,
-0.0044784546,
-0.15124512,
0.044433594,
0.0006814003,
-0.058746338,
-0.068237305,
-0.017730713,
-0.09802246,
0.028427124,
0.037475586,
0.040374756,
-0.0034446716,
-0.0005507469,
-0.014167786,
0.0128479,
-0.017105103,
0.036346436,
-0.004875183,
-0.02760315,
0.013938904,
-0.035614014,
-0.044555664,
0.019546509,
0.012435913,
0.01398468,
0.00024175644,
-0.042785645,
-0.019882202,
-0.009857178,
0.011413574,
0.02218628,
-0.009170532,
-0.018341064,
-0.006198883,
0.026657104,
0.0390625,
0.054382324,
-0.06378174,
-0.023010254,
-0.034942627,
-0.026733398,
-0.0016202927,
-0.030059814,
-0.012138367,
-0.017608643,
0.04107666,
0.011909485,
0.012817383,
0.0440979,
-0.045532227,
-0.045898438,
-0.0748291,
0.016082764,
-0.012001038,
-0.0069007874,
0.052886963,
-0.031433105,
0.020599365,
0.009635925,
0.028244019,
-0.039093018,
0.032104492,
0.027420044,
-0.036621094,
-0.02357483,
-0.01586914,
-0.027328491,
-0.0209198,
0.0020122528,
-0.021881104,
0.009857178,
-0.0440979,
-0.042907715,
-0.061035156,
0.018600464,
0.022216797,
0.035949707,
-0.020324707,
0.0004720688,
-0.019058228,
0.034576416,
-0.039367676,
0.011138916,
0.03930664,
-0.027877808,
0.04550171,
0.0602417,
-0.036346436,
0.04473877,
-0.03744507,
-0.020126343,
-0.004673004,
0.054504395,
0.00040125847,
0.013046265,
0.055236816,
-0.019302368,
-0.020111084,
-0.0395813,
0.05078125,
0.0124053955,
-0.037231445,
-0.05810547,
-0.0016479492,
0.032165527,
-0.025512695,
-0.03668213,
0.012756348,
-0.022018433,
0.035369873,
-0.02468872,
-0.00333786,
-0.005832672,
-0.025497437,
0.0003912449,
0.01763916,
-0.029006958,
-0.00057172775,
-0.021240234,
-0.021057129,
-0.010810852,
0.0435791,
0.04031372,
0.025848389,
0.0209198,
0.018463135,
-0.011390686,
0.029937744,
-0.015457153,
0.014427185,
0.0440979,
-0.011802673,
-0.025848389,
0.02911377,
0.030059814,
0.005065918,
-0.023620605,
0.024978638,
-0.03149414,
-0.12243652,
0.022949219,
0.023452759,
0.101135254,
0.06750488,
0.007774353,
-0.014564514,
0.0020160675,
0.050842285,
-0.023742676,
0.030410767,
-0.0013933182,
0.029922485,
-0.03012085,
-0.017913818,
-0.0018854141,
0.0211792,
-0.0005068779,
0.006023407,
0.01828003,
0.020248413,
0.0004248619,
-0.10809326,
-0.003452301,
0.040527344,
0.02758789,
0.019973755,
-0.0076141357,
-0.01096344,
0.026184082,
0.0087890625,
-0.022064209,
-0.029815674,
-0.0871582,
-0.034484863,
-0.012863159,
-0.0513916,
0.023925781,
0.029220581,
0.012870789,
0.015449524,
-0.06890869,
-0.018005371,
-0.03753662,
0.015090942,
0.005214691,
0.026046753,
-0.015365601,
0.0035114288,
0.044281006,
0.015487671,
0.0028762817,
0.030441284,
0.0058555603,
-0.033935547,
0.0042915344,
-0.02281189,
0.030303955,
0.042114258,
0.028335571,
-0.042541504,
-0.035217285,
-0.023117065,
0.0030269623,
0.0390625,
0.08215332,
-0.0058555603,
-0.054534912,
0.031555176,
-0.00178051,
0.012893677,
0.008369446,
0.019378662,
-0.052368164,
0.036193848,
0.06304932,
-0.008293152,
-0.025497437,
0.0037651062,
-0.0022850037,
-0.028152466,
-0.030212402,
-0.00995636,
-0.021759033,
-0.015052795,
0.036499023,
-0.01499176,
-0.0006380081,
0.045806885,
-0.0041885376,
-0.029754639,
-0.026184082,
-0.035736084,
0.03010559,
-0.02267456,
-0.048614502,
-0.010307312,
0.0015802383,
0.024749756,
-0.012054443,
0.005706787,
-0.012741089,
-0.04107666,
-0.032806396,
0.019836426,
-0.007949829,
-0.011413574,
0.022247314,
-0.031097412,
0.010093689,
-0.026565552,
-0.06048584,
0.0010137558,
-0.02255249,
0.0060691833,
-0.06100464,
-0.021942139,
-0.00655365,
0.017944336,
0.010009766,
0.010871887,
0.055023193,
-0.038085938,
0.038604736,
-0.026885986,
0.0041885376,
-0.0051116943,
-0.004764557,
0.011383057,
-0.027755737,
0.016204834,
-0.030517578,
0.0053253174,
-0.072387695,
-0.040496826,
0.015426636,
0.01802063,
-0.018417358,
0.04006958,
0.008239746,
-0.0010938644,
-0.032318115,
-0.02949524,
-0.0143966675,
-0.012435913,
0.005340576,
0.039123535,
0.0013780594,
-0.03753662,
-0.079711914,
-0.005619049,
-0.03845215,
-0.07318115,
0.027359009,
-0.01687622,
0.027801514,
0.06414795,
0.017578125,
-0.0016946793,
0.020736694,
0.0042304993,
0.041412354,
-0.025436401,
0.04815674,
0.021133423,
-0.014266968,
0.021133423,
-0.009719849,
-0.02330017,
-0.02319336,
-0.09387207,
-0.014076233,
-0.005622864,
-0.019042969,
-0.025344849,
0.025878906,
0.02267456,
-0.020202637,
0.018478394,
-0.024810791,
0.029296875,
-0.023986816,
-0.02607727,
0.02973938,
0.01713562,
0.01171875,
-0.009506226,
-0.0011873245,
0.010795593,
0.024658203,
0.013977051,
-0.057556152,
0.0066452026,
-0.0049057007,
0.0054244995,
-0.037322998,
0.0077056885,
0.022003174,
0.017868042,
-0.020004272,
0.009002686,
-0.033599854,
-0.002281189,
-0.0048294067,
0.037261963,
0.030029297,
-0.007835388,
0.006706238,
0.022781372,
0.01626587,
0.0067481995,
-0.00090265274,
0.010002136,
0.0034770966,
-0.05343628,
-0.033935547,
-0.07989502,
-0.025665283,
0.015991211,
0.022033691,
-0.012138367,
0.042175293,
-0.055877686,
-0.017730713,
0.08428955,
0.066345215,
-0.008125305,
-0.013793945,
-0.05126953,
-0.008399963,
0.008201599,
0.023269653,
-0.0023441315,
-0.0033454895,
0.038116455,
-0.02861023,
0.025436401,
0.051727295,
-0.01991272,
0.027069092,
-0.004020691,
-0.04864502,
-0.001824379,
0.021011353,
0.0007276535,
0.03414917,
-0.038024902,
0.024108887,
0.052978516,
-0.015731812,
-0.055999756,
0.0015869141,
-0.0038204193,
0.0077438354,
0.010528564,
0.031402588,
0.026824951,
-0.01927185,
-0.045654297,
0.05206299,
0.0055236816,
0.03552246,
0.0099105835,
-0.06451416,
0.004497528,
-0.0012245178,
-0.04321289,
0.0018405914,
0.013801575,
-0.021011353,
-0.026794434,
0.0015106201,
0.034088135,
-0.03753662,
-0.02015686,
-0.015899658,
-0.031707764,
0.0064964294,
0.029541016,
-0.04586792,
0.025405884,
0.0096588135,
-0.018478394,
0.012130737,
-0.01991272,
-0.01222229,
0.012481689,
0.0546875,
-0.043884277,
0.0076065063,
0.037231445,
-0.052520752,
0.014953613,
0.024307251,
-0.006931305,
0.01966858,
-0.023864746,
0.02658081,
0.048919678,
-0.004627228,
-0.08282471,
0.017623901,
-0.016113281,
0.016403198,
0.007030487,
0.029678345,
0.025344849,
-0.0069465637,
0.01373291,
-0.05734253,
0.025466919,
-0.012176514,
-0.00044560432,
0.041290283,
0.035369873,
-0.00541687,
0.012390137,
0.004558563,
-0.0070343018,
0.03338623,
0.0067863464,
-0.052642822,
0.003660202,
0.034332275,
0.0056114197,
-0.019485474,
-0.010566711,
0.009399414,
0.04348755,
-0.018615723,
-0.02104187,
-0.046203613,
0.009086609,
-0.02015686,
0.013954163,
-0.011558533,
0.002298355,
-0.014335632,
-0.08001709,
-0.019119263,
0.032714844,
-0.007827759,
-0.010543823,
0.0057029724,
0.019180298,
-0.0018568039,
0.008491516,
-0.049438477,
-0.011314392,
0.03050232,
-0.048614502,
-0.059051514,
0.008575439,
0.014831543,
0.025039673,
-0.012641907,
0.021713257,
0.00630188,
0.0070877075,
-0.014549255,
0.0059661865,
-0.018249512,
0.056671143,
0.015686035,
-0.00034880638,
-0.026809692,
-0.042510986,
-0.04006958,
-0.052734375,
0.042816162,
-0.010719299,
0.024780273,
0.06011963,
0.015060425,
-0.0077590942,
0.013824463,
0.030883789,
0.015701294,
-0.005756378,
-0.07141113,
-0.037384033,
0.0016450882,
0.020462036,
-0.032958984,
0.0047302246,
-0.06323242,
0.03744507,
-0.02255249,
-0.007904053,
-0.010902405,
-0.06378174,
-0.005443573,
-0.005382538,
-0.03781128,
0.0068969727,
-0.0007238388,
0.01737976,
-0.039093018,
-0.017303467,
-0.021408081,
-0.05432129,
0.016082764,
0.015975952,
-0.013442993,
-0.00092315674,
0.034088135,
-0.016937256,
0.013748169,
0.0065345764,
-0.025650024,
-0.004764557,
0.003074646,
0.02406311,
0.012924194,
0.007926941,
0.014434814,
0.032348633,
0.00819397,
0.03616333,
-0.007751465,
-0.031433105,
0.013153076,
-0.036590576,
0.01020813,
-0.023986816,
0.002922058,
-0.0005941391,
0.0029354095,
0.014823914,
0.08807373,
-0.035339355,
-0.06616211,
-0.002243042,
0.036315918,
0.008979797,
0.048461914,
-0.024612427,
-0.0025997162,
-0.007785797,
-0.013839722,
0.004043579,
0.01826477,
0.033416748,
-0.036956787,
0.02848816,
0.0031528473
],
"space_type": "innerproduct"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment