Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50A879202 for ; Thu, 29 Sep 2011 14:11:07 +0000 (UTC) Received: (qmail 70720 invoked by uid 500); 29 Sep 2011 14:11:04 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 70680 invoked by uid 500); 29 Sep 2011 14:11:04 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 70671 invoked by uid 99); 29 Sep 2011 14:11:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 14:11:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.218.48 as permitted sender) Received: from [209.85.218.48] (HELO mail-yi0-f48.google.com) (209.85.218.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 14:10:56 +0000 Received: by yih10 with SMTP id 10so765134yih.35 for ; Thu, 29 Sep 2011 07:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1Yy1t8HLR1NbdHui2mU9lLfYgGUvDPeA42JBqCaFiBI=; b=PpCvNLAuBJnq7TnH2EAtb6P6Ws61PcIERIXxXYCXmw+Tr45UAUxLE3UMblNi9+atrY vO2fM4IN+Qqa9YE06HaV14WuugbsrH+bc2q1UTnUXMYdgzOQKqhvHSg+dapclCGlGyOz fJxCpsSWs+dOdi+uZZK8w+B/Di8ruh0PbbEPg= MIME-Version: 1.0 Received: by 10.68.14.6 with SMTP id l6mr51522073pbc.84.1317305434817; Thu, 29 Sep 2011 07:10:34 -0700 (PDT) Received: by 10.68.54.35 with HTTP; Thu, 29 Sep 2011 07:10:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Sep 2011 10:10:34 -0400 Message-ID: Subject: Re: Distributed search has problems with some field names From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I know I've seen other anomalies with odd characters in field names. In general, it's much safer to use only letters, numbers, and underscores. In fact, I even prefer lowercase letters. Since you're pretty sure those work, why not just use them? Best Erick On Wed, Sep 28, 2011 at 6:59 AM, Luis Neves wrote: > > > Hello all, > > I'm experimenting with the "Distributed Search" bits in the nightly builds > and I'm facing a problem. > > I have on my schema.xml some dynamic fields defined like this: > > > multiValued="true" /> > > > > When hitting a single shard the following query works fine: > > http:///select?q=*:*&fl=ts,$distinct_boxes > > But when I add the "&distrib=true" parameter I get a NullPointerException: > > > java.lang.NullPointerException > at > org.apache.solr.handler.component.QueryComponent.returnFields(QueryComponent.java:1025) > at > org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:725) > at > org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:700) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:292) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1451) > at > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:353) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:248) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > > > > The "$" in "$distinct_boxes" appears to be the culprit somehow, the query: > > /select?q=*:*&fl=ts,distinct_boxes&distrib=true> > > works without errors, but of course doesn't retrieve the field I want. > > Funnily enough when requesting the uniqueKey field there are no errors: > > /select?q=*:*&fl=tid,ts,$distinct_boxes&distrib=true> > > But somehow the data from the field "$distinct_boxes" doesn't appear in the > output. > > Is there some workaround? Using "fl=*" returns all the data from the fields > that start with "$" but it severely increases the size of the response. > > > -- > Luis Neves > > > >