TermsComponent uses java.util.regex which is not particulary fast. If the 
number of terms grows your CPU is going to overheat. I'd prefer an analyzer 
approach.

> As I want to use it in an Autocomplete it has to be fast. Terms.prefix gets
> results in around 100 milliseconds, while terms.regex is 10 to 20 times
> slower.
> 
> Not storing the field made it a bit faster but not enough. The index is on
> a seperate core and only about 5Mb big. Are there some tricks to make it
> work a lot faster? Or do I have to switch to ngrams or something?
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Terms-regex-performance-issue-tp3268994
> p3268994.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to