gauravj88 commented on PR #12434: URL: https://github.com/apache/lucene/pull/12434#issuecomment-1857999310
Hello @benwtrent @alessandrobenedetti , I'm seeking assistance in comprehending how to calculate the total score for a parent document, sort it in descending order by the score, and additionally, only compute matched child documents with it's score. Your guidance is appreciated. Here's the Solr query I've written. {!parent which=vector_status_s:P}{!knn f=vector topK=5}[-0.11524472,-0.015096951,-0.02416302,-0.042546727,-0.026223207,-0.024288718,-0.06648887,-0.019747224,-0.15247388,0.017357947,-0.07997921,-0.0044639846,0.026787976,0.04674327,-0.025140975,0.022736596,0.038513225,-0.007743583,0.008468372,-0.010870436,-0.049723275,0.052544124,-0.01040933,-0.021913795,0.055262197,0.03814301,-0.030052986,0.011873034,0.014196521,-0.045679808,-0.030343458,0.0027234245,0.067535505,-0.0065462803,0.014386235,0.0815663,0.034734566,0.076742254,-0.047816984,-0.06893713,-0.00575254,-0.0065407623,0.032530636,-0.047053427,-0.045342736,0.05458816,-0.0036792993,-0.119853236,0.0621119,0.05868241,-0.026309596,-0.07372244,0.098664746,-0.10785703,0.058371536,0.11598263,0.0035437504,0.034718044,-0.008448179,-0.015374862,0.11060915,-0.034994677,-0.07641869,-0.018799445,0.06742509,0.032640636,-0.0805842,0.056232687,-0.055578843,-0.09173681,0.055953458,-0.093306944,-0.005010136,-0.027816057,0.069614165,0.017868416,0.0 64177155,0.033978168,0.0015766103,-0.024414165,-0.03577587,0.0456416,-0.02556829,-0.019146064,-0.061762888,0.0881951,0.021560378,-0.021047728,0.012747205,0.022434331,0.018475346,-0.046412993,-0.04435442,0.04168245,0.058627237,0.0135493,-0.06728198,0.07312625,-0.05581615,0.04042105,-0.011703705,0.08142669,-0.02410761,-0.091190875,-0.028388929,-0.032626763,-0.05041609,0.06420719,0.046886727,0.06463699,0.035878975,-0.001365671,-0.069236726,-0.06430995,0.03162415,-0.07464388,-0.03160973,0.04416939,-0.024402045,-0.014191367,0.07411146,0.104716584,-0.048191704,-0.005468206,0.03430066,2.9004048E-4,0.026272327,1.70109E-33,0.029819172,0.06773484,-0.00742313,0.071461275,0.07202007,0.020473966,0.038026482,0.08200619,0.02915628,-0.012804087,0.059027206,0.089257926,-0.06499567,-0.0025720217,-0.046283025,-0.07170174,-0.046748683,-0.112400465,-0.035749055,-0.0014416518,0.020358646,0.046174794,-0.052782748,0.058808744,0.054796845,-0.060931858,0.108469814,0.033284586,-0.03280937,0.024645116,-0.08053 44,0.034969736,-0.032420795,0.004894371,-0.026090093,0.0041577136,-0.04494302,-0.037979875,-0.03771678,-0.02735791,-0.09234106,0.002481496,-0.07598019,-3.466485E-4,-0.06326391,-0.00995851,0.035185788,0.07036043,0.10276299,-0.059668124,-0.0083749425,0.018889284,0.027138462,0.07999683,-0.019039072,-0.061816998,0.017313186,-0.051152766,0.039306473,-0.06226915,0.01846972,0.04963292,0.020879248,0.14606093,-0.09989049,-0.005342353,0.06521556,-0.024311792,0.041433204,0.066303164,0.022143282,-0.035711862,0.009525745,-0.057548966,-0.0806604,0.0028130244,-0.010393038,0.112975076,-0.0018174571,0.030156288,-0.02206562,0.04948243,0.032909732,0.01555169,0.014569762,0.0039269393,0.017587842,-0.0105174305,0.016612422,0.077120796,-0.042344075,-0.06468686,-0.036919363,0.03040028,-0.019409828,-3.251894E-33,0.040625818,0.016581528,-0.021927938,0.021516323,0.03471849,-0.045520667,-0.017614665,-0.07006911,0.0071153007,0.0025327879,0.005648088,0.04241776,-0.010652379,-0.023858054,0.012913902,-0.027931714, 0.004287367,-0.027264068,0.061210893,-0.039421324,0.12714641,0.03849749,-0.094134904,-0.007945886,0.04947471,-0.056016088,-0.087781586,0.0797169,-0.025210094,-0.06051712,-0.019571543,-0.060732212,-0.012113058,0.017380701,-0.06130845,0.06727084,-0.033202328,0.091200486,0.02490767,-0.07749138,0.05946457,-0.02085205,-0.0049607577,0.050158907,-0.024974424,-0.054097354,-0.034355577,-0.0655865,-0.06576413,0.056954406,0.05969364,0.08660039,0.0020785942,-0.09242396,-0.052793916,0.034658235,0.03479103,0.0055098752,0.00982389,0.11976097,0.03207969,-0.012991179,0.05993113,0.037464924,-0.05148737,0.0068404386,0.07629449,-0.0012071802,-0.05490101,0.061263554,-0.008928003,-0.004517294,0.03881187,-0.030366309,-0.032273546,0.0091122035,0.0014949276,0.031635325,-0.028407004,-0.069446735,0.036516335,-0.014874138,0.049066026,0.12900232,0.05830397,0.06482125,0.06983362,0.041088205,0.0348922,0.07437936,-0.011469576,-0.043531597,-0.009242795,-0.060591742,-0.11750616,-5.111815E-8,-0.015631394,-0.027901249 ,-0.123293586,-0.05102494,-0.012230896,-0.0066172937,0.025514597,0.033083055,-0.022466997,0.059927735,0.09024767,-0.039916337,-0.09570077,0.0348283,0.020531913,-0.071214065,-0.023437353,0.013603563,-0.100605406,-0.067646325,0.031216368,0.0102580255,-0.017372983,0.031901423,-0.032343123,0.011557923,-0.019640395,0.0059259743,0.030634984,0.023833074,-0.082269505,0.0863291,-0.014290165,-0.027523914,-0.018137619,-0.030911706,0.01040259,0.01957091,-0.028549556,-0.04439533,-0.061055064,-0.005775817,0.025976641,0.008309728,-0.030016769,-0.025356589,-0.07005577,-0.02789409,0.028691122,-0.013100756,-0.018772617,0.037944615,0.0311197,0.009778543,0.0055453815,-0.01825943,-0.022618072,-0.07403188,0.03977728,-0.08186114,-0.0038845171,-0.054700762,0.0027615656,0.054946393] fl=*,[child] -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org