I want to shuffle the index so that when I get the documents with
"match_all" they don't appear in chronological order.
Here's the question with details on stackoverflow:
I will appreciate any help.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/43e904a0-156d-486f-9856-5282bdf3bb86%40googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
dadoonet
(David Pilato)
February 16, 2014, 12:52pm
2
Use function score with random scoring.
Should help.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 16 févr. 2014 à 10:15, Gabriel Gavilan gavilán gumymoxy@gmail.com a écrit :
I want to shuffle the index so that when I get the documents with "match_all" they don't appear in chronological order.
Here's the question with details on stackoverflow:
lucene - Elasticsearch shuffle index sorting - Stack Overflow
I will appreciate any help.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/43e904a0-156d-486f-9856-5282bdf3bb86%40googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6936E70C-92BF-43D7-8AFB-15AE87EA281B%40pilato.fr .
For more options, visit https://groups.google.com/groups/opt_out .
Thank you very much, I wouldn't have found this option on my own
Here's the query I used:
{ "from":STARTING_POSITION_NUMBER, "size":15, "query" : { "function_score": { "random_score": { "seed" : 1 } } } }
El domingo, 16 de febrero de 2014 13:52:53 UTC+1, David Pilato escribió:
Use function score with random scoring.
Should help.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 16 févr. 2014 à 10:15, Gabriel Gavilan gavilán <gumy...@gmail.com <javascript:>>
a écrit :
I want to shuffle the index so that when I get the documents with
"match_all" they don't appear in chronological order.
Here's the question with details on stackoverflow:
lucene - Elasticsearch shuffle index sorting - Stack Overflow
I will appreciate any help.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/43e904a0-156d-486f-9856-5282bdf3bb86%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9d438798-6c86-4fb3-95a6-a27dfb1e6790%40googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .