Hello, It seems your Elasticsearch query is doing a lot more, there is custom scoring, some filtering with OR on missing fields, sub queries, more fields, etc.
Were you doing exactly the same filtering/scoring with Solr? Can you incremently test and compare your queries performance, starting with just the multi_match vs edismax, also compare the number of results. Ensure the cross_fields parameter is acting as you want, as you have lot of fields with maybe different analyzers. Cédric Hourcade [email protected] On Tue, Jun 24, 2014 at 5:09 PM, Christoph Lingg <[email protected]> wrote: > Hi! > > we're using elasticsearch for an open source geocoder called photon. We're > using solr previously but we switched to elasticsearch some time ago and > I'am using now multi_match's cross_field query (which is great by the way as > it sorts out most problems we had before). > > I investigated the performance between both implementation and it turned out > that the elasticsearch is about 5 times slower than the solr counterpart. > The dataset (100,000,000 documents) is identical and the size of both > indices too. On the solr side, I am using an edismax query whilst it is a > cross_field on elasticsearch. Average query time is 120ms vs. 1000s. > > I adjusted the number of open file descriptors to 64k, during the benchmark > there is (almost) no IO whilst the cpu is very high (> 75%, 12 cores). As > cross_field is a very recent feature I tried out best_field as well, but > benchmark results weren't better. > > Do you have any ideas on how I can dig more into performance issues like > this in elasticsearch? Do you have experience with both queries you can > share with me? > > Thanks for your help! > Christoph > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/5bff0274-ea12-4f28-a304-3f0ad691880c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAJQxjPMParLX7mwJfPUz6L_VvGbdB9jeQ_5uP1Qy%2B06yM58wTw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
