Thank you.
So there is no way to speed up a search like that one, taking just the
first match?
Is there any other way to do that?
May be saying "relax, you job is done" after the first match?
![]()
I don't know if I was clear. I'm trying to make it work faster by reducing
it's work.
On Thu, Jan 30, 2014 at 4:45 PM, Nikolas Everett nik9000@gmail.com wrote:
"size": 1
will only return the top match. Elasticsearch will still count all the
other matches and order them though. It doesn't have a search type that
says "get me the first N of these you see I don't care about order". This
is generally OK because Lucene is really fast at ordering the documents.Nik
On Thu, Jan 30, 2014 at 2:41 PM, Derf fred@redewireless.net wrote:
Hi,
I want to know how can I make a search stop when it find just one
document.
I have 5million documents and I'm looking for documents that have some
numbers. I don't need sorting or scoring.I think I can filter the result, but I guess that this way, all documents
will be considered on the search. I need to speed up the search, taking
only the first match and ignoring the other ones. Is there any way to stop
a search on the first match?Now I'm looking this way:
curl -XPOST "http://log01:9200/ncards/card/_search"
-d'{"query":{"query_string":{"query": "09 OR 11"}}}'--
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/4f755ad9-78eb-4547-b4ca-df3fc9234d37%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/C-yzL1zmbp8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3E703D%3DktLJnNrdjvhdcgvaSSMMHuULiWjAVRu0fpZWw%40mail.gmail.com
.For more options, visit https://groups.google.com/groups/opt_out.
--
01000110011100100110010101100100
Frederick Dark
Rede Wireless - Fábrica de Software
Cel.: +55 81 9945-3328
--
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/CAF_mncGMgH8EfjG%2B6Sn2dBq%3DAcf9Uc0atS5vGLbWtO_xb5Yvrg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.