0
我如何才能獲得該方面中每個存儲桶的最相關文檔ID。 例如,我想知道桶「喜劇」,「戲劇」,「冒險」等最相關的文檔ID:如何從各個方面獲取每個存儲桶的最相關文檔ID?
<results>
<status rid="v7r9hs8oFQqMHnk=" time-ms="3"/>
<hits found="85" start="0">
<hit id="tt1411664"/>
<hit id="tt1911658"/>
<hit id="tt0086190"/>
<hit id="tt0120601"/>
<hit id="tt2141761"/>
<hit id="tt1674771"/>
<hit id="tt0056687"/>
<hit id="tt0397892"/>
<hit id="tt0258153"/>
<hit id="tt0796366"/>
</hits>
<facets>
<facet name="genres">
<bucket value="Comedy" count="41"/> <<???? What is the most relevant document ID for this bucket?
<bucket value="Drama" count="35"/> <<???? What is the most relevant document ID for this bucket?
<bucket value="Adventure" count="29"/> <<???? What is the most relevant document ID for this bucket?
<bucket value="Sci-Fi" count="24"/> <<???? What is the most relevant document ID for this bucket?
<bucket value="Action" count="20"/> <<???? What is the most relevant document ID for this bucket?
</facet>
</facets>
</results>
是的,它是正確的,但要獲得幾鬥我要的結果做5個請求,我想通過一個請求獲得5個桶的結果 –