What is the most efficient way to get all results from Elasticsearch?

adityasinghraghav

I need to get all the hits for a query with along with the score. I don't care if the results are sorted in any order or not. Is there anyway to make elastic search the sorting part to make the process more efficient. The scroll API disables the sorting but when using it with "sort" : ["_doc"] it also skips the scoring process. Are there any other sort order than ["_doc"] that might work in this case ?

EDIT: setting Track_score to true did make elasticsearch return the scores but didn't really make it faster; the took time is still almost the same. Any ideas as to why that might be ?

Sarwar Bhuiyan

According to the documentation: "If you want the scoring to happen, even without sorting on it, set the track_scores parameter to true".

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is an efficient way to exclude all results from a sql query?

From Dev

What is an efficient way to exclude all results from a sql query?

From Dev

What is the most efficient way to export all constants (Readonly variables) from Perl module

From Dev

MySQL: what is the most efficient way to retrieve all permissions from RBAC database?

From Dev

What is the most efficient way to query all documents from a specific partition in Partitioned Collection in Azure Document DB?

From Dev

Most efficient way in MySQL to get all associated values from a relation table while filtering after the same values

From Dev

Most efficient way to get all permutations in c++

From Dev

What is the most efficient way to get the last line break in a string

From Dev

What is the most efficient way to get log returns in numpy

From Dev

What is the most efficient way in Spark to get unique pairs in a PairRDD?

From Dev

What is the most efficient way to get the upper word of a dword in C?

From Dev

Most efficient way to retrieve all element of a Dictionary from a list of keys?

From Dev

Most efficient way to call method on all combinations from an ArrayList?

From Dev

What is the most efficient way to hide element completely from your page?

From Java

What is the most efficient way to compute the difference of lines from two files?

From Dev

What is the most efficient way to extract a date from a timestamp in PostgreSQL?

From Dev

What is the most efficient way to construct training images from segmentation output?

From Dev

What is the most efficient way to create a DataFrame from two unrelated series?

From Dev

What is the most efficient way to compute the difference of lines from two files?

From Dev

What is the most efficient way of accessing a property from an array of objects in PowerShell?

From Dev

What is the most efficient way to hide element completely from your page?

From Dev

What is the most efficient way to retrieve a particular section of text from a string

From Dev

What's the most efficient way of retrieving a batch of keys from an IndexedRDD

From Dev

The most efficient way to get object with max value from list of objects

From Dev

Most efficient way to get the highest number from a collection of integers

From Dev

Most efficient way to get subversion properties from server

From Dev

Mysql: most efficient way to get the ID from an attempted insertion?

From Dev

Most efficient way to get a specific model from a collection in BLADE in Laravel

From Dev

How to Get All Results from Elasticsearch in Python

Related Related

  1. 1

    What is an efficient way to exclude all results from a sql query?

  2. 2

    What is an efficient way to exclude all results from a sql query?

  3. 3

    What is the most efficient way to export all constants (Readonly variables) from Perl module

  4. 4

    MySQL: what is the most efficient way to retrieve all permissions from RBAC database?

  5. 5

    What is the most efficient way to query all documents from a specific partition in Partitioned Collection in Azure Document DB?

  6. 6

    Most efficient way in MySQL to get all associated values from a relation table while filtering after the same values

  7. 7

    Most efficient way to get all permutations in c++

  8. 8

    What is the most efficient way to get the last line break in a string

  9. 9

    What is the most efficient way to get log returns in numpy

  10. 10

    What is the most efficient way in Spark to get unique pairs in a PairRDD?

  11. 11

    What is the most efficient way to get the upper word of a dword in C?

  12. 12

    Most efficient way to retrieve all element of a Dictionary from a list of keys?

  13. 13

    Most efficient way to call method on all combinations from an ArrayList?

  14. 14

    What is the most efficient way to hide element completely from your page?

  15. 15

    What is the most efficient way to compute the difference of lines from two files?

  16. 16

    What is the most efficient way to extract a date from a timestamp in PostgreSQL?

  17. 17

    What is the most efficient way to construct training images from segmentation output?

  18. 18

    What is the most efficient way to create a DataFrame from two unrelated series?

  19. 19

    What is the most efficient way to compute the difference of lines from two files?

  20. 20

    What is the most efficient way of accessing a property from an array of objects in PowerShell?

  21. 21

    What is the most efficient way to hide element completely from your page?

  22. 22

    What is the most efficient way to retrieve a particular section of text from a string

  23. 23

    What's the most efficient way of retrieving a batch of keys from an IndexedRDD

  24. 24

    The most efficient way to get object with max value from list of objects

  25. 25

    Most efficient way to get the highest number from a collection of integers

  26. 26

    Most efficient way to get subversion properties from server

  27. 27

    Mysql: most efficient way to get the ID from an attempted insertion?

  28. 28

    Most efficient way to get a specific model from a collection in BLADE in Laravel

  29. 29

    How to Get All Results from Elasticsearch in Python

HotTag

Archive