- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for scoreDocs (0.12 seconds)
-
benchmarks/src/main/java/org/elasticsearch/benchmark/script/ScriptScoreBenchmark.java
public TopDocs benchmark() throws IOException { TopDocs topDocs = new IndexSearcher(reader).search(scriptScoreQuery(factory), 10); if (topDocs.scoreDocs[0].score != 1_000_000) { throw new AssertionError("Expected score to be 1,000,000 but was [" + topDocs.scoreDocs[0].score + "]"); } return topDocs; } private Query scriptScoreQuery(ScoreScript.Factory factory) {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 20 13:45:50 GMT 2021 - 8.1K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/TermsReduceBenchmark.java
* in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ package org.elasticsearch.benchmark.search.aggregations; import org.apache.lucene.search.ScoreDoc; import org.apache.lucene.search.TopDocs; import org.apache.lucene.search.TotalHits; import org.apache.lucene.util.BytesRef; import org.elasticsearch.action.OriginalIndices;
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Aug 20 15:45:38 GMT 2021 - 8.1K bytes - Click Count (0)