Re: solr 3.4 with nTiers = 2: usage of ids param causes NullPointerException (NPE)

2012-04-12 Thread Dmitry Kan
Can anyone help me out with this? Is this too complicated / unclear? I could share more detail if needed. On Wed, Apr 11, 2012 at 3:16 PM, Dmitry Kan dmitry@gmail.com wrote: Hello, Hopefully this question is not too complex to handle, but I'm currently stuck with it. We have a system

Re: solr 3.4 with nTiers = 2: usage of ids param causes NullPointerException (NPE)

2012-04-12 Thread Mikhail Khludnev
Dmitry, The last NPE in HighlightingComponent is just a sad coding issue. few rows later we can see that developer expected to have some docs not found // remove nulls in case not all docs were able to be retrieved rb.rsp.add(highlighting, SolrPluginUtils.removeNulls(new

Re: solr 3.4 with nTiers = 2: usage of ids param causes NullPointerException (NPE)

2012-04-12 Thread Yonik Seeley
On Wed, Apr 11, 2012 at 8:16 AM, Dmitry Kan dmitry@gmail.com wrote: We have a system with nTiers, that is: Solr front base --- Solr front -- shards Although the architecture had this in mind (multi-tier), all of the pieces are not yet in place to allow it. The errors you see are a direct

Re: solr 3.4 with nTiers = 2: usage of ids param causes NullPointerException (NPE)

2012-04-12 Thread Dmitry Kan
Mikhail, Thanks for sharing your thoughts. Yes I have tried checking for NULL and the entire chain of queries between tiers seems to work. But I suspect, that some docs will be missing. In principle, unless there is an OutOfMemory or a shard down, the doc ids should be retrieving valid documents.

Re: solr 3.4 with nTiers = 2: usage of ids param causes NullPointerException (NPE)

2012-04-12 Thread Dmitry Kan
Thanks Yonik, This is what I expected. How big the change would be, if I'd start just with Query and Highlight components? Did the change to QueryComponent I made make any sense to you? It would of course mean a custom solution, which I'm willing to contribute as a patch (in case anyone

solr 3.4 with nTiers = 2: usage of ids param causes NullPointerException (NPE)

2012-04-11 Thread Dmitry Kan
Hello, Hopefully this question is not too complex to handle, but I'm currently stuck with it. We have a system with nTiers, that is: Solr front base --- Solr front -- shards Inside QueryComponent there is a method createRetrieveDocs(ResponseBuilder rb) which collects doc ids of each shard and