I would like to use myindex/_analyze?analyzer too get list of tokens ES is
using in my query to attempt client side highlighting.
I noticed that it is very slow relative to the query itself. While query
takes 20-30ms (browser measured roundtrip time) analyze call takes over
200ms
Is there any way to speedup this call?
If you are using Java, then you can recreate the analysis service locally
and avoiding doing network calls. Your Elasticsearch config file and
another external files such as synonyms would need to be in your classpath.
Look at the test classes for implementation details.
I would like to use myindex/_analyze?analyzer too get list of tokens ES is
using in my query to attempt client side highlighting.
I noticed that it is very slow relative to the query itself. While query
takes 20-30ms (browser measured roundtrip time) analyze call takes over
200ms
Is there any way to speedup this call?
Thank you Ivan, at the moment it is a pure REST with ExtJS client
On Mon, Mar 25, 2013 at 12:37 PM, Ivan Brusic ivan@brusic.com wrote:
If you are using Java, then you can recreate the analysis service locally
and avoiding doing network calls. Your Elasticsearch config file and
another external files such as synonyms would need to be in your classpath.
Look at the test classes for implementation details.
I would like to use myindex/_analyze?analyzer too get list of tokens ES
is using in my query to attempt client side highlighting.
I noticed that it is very slow relative to the query itself. While query
takes 20-30ms (browser measured roundtrip time) analyze call takes over
200ms
Is there any way to speedup this call?
Thank you,
Alex
--
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.
On Monday, March 25, 2013 5:23:30 PM UTC+1, AlexR wrote:
I would like to use myindex/_analyze?analyzer too get list of tokens ES is
using in my query to attempt client side highlighting.
I noticed that it is very slow relative to the query itself. While query
takes 20-30ms (browser measured roundtrip time) analyze call takes over
200ms
Is there any way to speedup this call?
hey alex,
I'd be curious what kind analysis call you are doing to reproduce this
rather slowish call. 200ms is a lot for just an analysis call so I'd want
to get to root of the problem.
ran the above 5 times in a row took between 130 and 182ms watching it in
firebug. search on the same string with highlighting etc was taking only
20ms per firebug
On Monday, March 25, 2013 5:23:30 PM UTC+1, AlexR wrote:
I would like to use myindex/_analyze?analyzer too get list of tokens ES
is using in my query to attempt client side highlighting.
I noticed that it is very slow relative to the query itself. While query
takes 20-30ms (browser measured roundtrip time) analyze call takes over
200ms
Is there any way to speedup this call?
hey alex,
I'd be curious what kind analysis call you are doing to reproduce this
rather slowish call. 200ms is a lot for just an analysis call so I'd want
to get to root of the problem.
ran the above 5 times in a row took between 130 and 182ms watching it in
firebug. search on the same string with highlighting etc was taking only
20ms per firebug
On Monday, March 25, 2013 5:23:30 PM UTC+1, AlexR wrote:
I would like to use myindex/_analyze?analyzer too get list of tokens ES
is using in my query to attempt client side highlighting.
I noticed that it is very slow relative to the query itself. While query
takes 20-30ms (browser measured roundtrip time) analyze call takes over
200ms
Is there any way to speedup this call?
hey alex,
I'd be curious what kind analysis call you are doing to reproduce this
rather slowish call. 200ms is a lot for just an analysis call so I'd want
to get to root of the problem.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.