Hello Salman, Let's me drop few thoughts on http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200903.mbox/%3c856ac15f0903272054q2dbdbd19kea3c5ba9e105b...@mail.gmail.com%3E
There two aspects of this question: 1. dealing with long running processing (thread divergence actions http://docs.oracle.com/javase/specs/jls/se5.0/html/memory.html#65310) and 2. an actual time checking. "terminating" or "aborting" thread (2.) are just a way to tracking time externally, and send interrupt() which the thread should react on, which they don't do now, and we returning to the core issue (1.) Solr's time allowed is to the proper way to handle this things, the only problem is that expect that the only core search is long running, but in your case rewriting MultiTermQuery-s takes a huge time. Let's consider this problem. First of all MultiTermQuery.rewrite() is the nearly design issue, after heavy rewrite occurs, it's thrown away, after search is done. I think the most straightforward way is to address this issue by caching these expensive queries. Solr does it well http://wiki.apache.org/solr/CommonQueryParameters#fq However, only for http://en.wikipedia.org/wiki/Conjunctive_normal_form like queries, there is a workaround allows to cache disjunction legs see http://blog.griddynamics.com/2014/01/segmented-filter-cache-in-solr.html If you still want to run expensively rewritten queries you need to implement timeout check (similar to TimeLimitingCollector) for TermsEnum returned from MultiTermQuery.getTermsEnum(), wrapping an actual TermsEnums is the good way, to apply queries injecting time limiting wrapper TermsEnum, you might consider override methods like SolrQueryParserBase.newWildcardQuery(Term) or post process the query three after parsing. On Mon, Mar 31, 2014 at 2:24 PM, Salman Akram < salman.ak...@northbaysolutions.net> wrote: > Anyone? > > > On Wed, Mar 26, 2014 at 7:55 PM, Salman Akram < > salman.ak...@northbaysolutions.net> wrote: > > > With reference to this thread< > http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200903.mbox/%3c856ac15f0903272054q2dbdbd19kea3c5ba9e105b...@mail.gmail.com%3E>I > wanted to know if there was any response to that or if Chris Harris > > himself can comment on what he ended up doing, that would be great! > > > > > > -- > > Regards, > > > > Salman Akram > > > > > > > -- > Regards, > > Salman Akram > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>