Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Very slow requests #15

Open
chokosabe opened this issue May 20, 2013 · 12 comments
Open

Very slow requests #15

chokosabe opened this issue May 20, 2013 · 12 comments
Assignees

Comments

@chokosabe
Copy link

Just installed the plugin (thanks for all the great work).

Just using it with the instructions and each query is taking ~ 2 secs (100,000 records, 8 gb ram) using the fuzzy suggester.

@spinscale
Copy link
Owner

I'll try to reproduce this with some data... not sure where this might come from.

How big is your FST according to the suggest stats API? How big is your ES_HEAP_SIZE?

@spinscale
Copy link
Owner

Also, can you add your mapping and a sample query which is being slow?

@chokosabe
Copy link
Author

suggestStats: http://pastebin.com/NRtggyfq
ES_HEAP_SIZE is 3gb

query: 'http://localhost:9200/product_en/product-type/__suggest' -d '{"field":"name", "type":"fuzzy", "term":"car"}'

@spinscale
Copy link
Owner

Just to make sure: Every query you fire is slow, right? The first query you are sending initializes the in-memory data structure. This query is supposed to be slow. When you are sending another query for the same field it should be really fast.

If you are sending any query for a field two times, it remains slow, right?

Another question: Is the name field very long or quite short? Do you have a rough average? I want to reproduce your problem as close as possible, so I need as good information as possible.

@chokosabe
Copy link
Author

Hi there. Yes, every request is slow and they take the same time.

The field names can be very long. Up to 150 chars in some cases...

@spinscale
Copy link
Owner

I have an idea what the problem is (thanks to posting the statistics). Need to investigate though.

@spinscale
Copy link
Owner

Hey,

I fixed the issue. Can you test it before I release a new version to the maven repo?

git clone https://github.com/spinscale/elasticsearch-suggest-plugin
cd elasticsearch-suggest-plugin
mvn -DskipTests=true package
cd path/to/your/elasticsearch/inst
bin/plugin -install suggest -url file:///path/to/github/directory/elasticsearch-suggest/target/releases/elasticsearch-plugin-suggest-0.90.0-0.6.2-SNAPSHOT.zip

That would be awesome! Many thanks for your help!

@chokosabe
Copy link
Author

Having trouble compiling/building with Maven.

@spinscale
Copy link
Owner

I just released a new version, can you test that one? Version is 0.6.2

@ghost ghost assigned spinscale May 28, 2013
@spinscale
Copy link
Owner

Please test with 0.90.0-0.6.3 - which is a bugfix version

@spinscale
Copy link
Owner

any feedback here? Can I close this one?

@chokosabe
Copy link
Author

Hi Alex,

the issue is still there. I guess most people will move onto the suggest api thats part of the package now (once someone puts in some documentation). Thanks for all the help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants