Hi, It looks like the outcome field my not be correct or it may have missing values. You'll need to populate this field for all records in the training set.
Joel Bernstein http://joelsolr.blogspot.com/ On Wed, Nov 23, 2016 at 3:21 PM, Joe Obernberger < [email protected]> wrote: > Hi - I'm trying to experiment with the new train, features, model, > classify capabilities of Solr 6.3.0. I'm following along on: > https://cwiki.apache.org/confluence/display/solr/Streaming+ > Expressions#StreamingExpressions-StreamSources > > When I execute: > features(UNCLASS, > q="*:*", > featureSet="JoeFeature1", > field="Title", > outcome="Out", > numTerms=250) > > Title is defined like: > <field name="Title" type="text_general" indexed="true" stored="false"/> > > Is this the correct syntax? I'm getting an error: > > { > "result-set": { > "docs": [ > { > "EXCEPTION": "java.util.concurrent.ExecutionException: > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: > Error from server at http://cressida:9100/solr/UNCLASS_shard2_replica2: > java.lang.NullPointerException\n\tat org.apache.solr.search.IGainTe > rmsQParserPlugin$IGainTermsCollector.collect(IGainTermsQParserPlugin.java:129)\n\tat > org.apache.lucene.search.MatchAllDocsQuery$1$1.score(MatchAllDocsQuery.java:56)\n\tat > org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)\n\tat > org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)\n\tat > org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)\n\tat > org.apache.solr.search.SolrIndexSearcher.buildAndRunCollecto > rChain(SolrIndexSearcher.java:242)\n\tat org.apache.solr.search.SolrInd > exSearcher.getDocListNC(SolrIndexSearcher.java:1803)\n\tat > org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1620)\n\tat > org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:617)\n\tat > org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:531)\n\tat > org.apache.solr.handler.component.SearchHandler.handleReques > tBody(SearchHandler.java:295)\n\tat org.apache.solr.handler.Reques > tHandlerBase.handleRequest(RequestHandlerBase.java:153)\n\tat > org.apache.solr.core.SolrCore.execute(SolrCore.java:2213)\n\tat > org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)\n\tat > org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:460)\n\tat > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:303)\n\tat > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)\n\tat > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilte > r(ServletHandler.java:1668)\n\tat org.eclipse.jetty.servlet.Serv > letHandler.doHandle(ServletHandler.java:581)\n\tat > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\n\tat > org.eclipse.jetty.server.handler.ContextHandler.doHandle( > ContextHandler.java:1160)\n\tat org.eclipse.jetty.servlet.Serv > letHandler.doScope(ServletHandler.java:511)\n\tat > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat > org.eclipse.jetty.server.handler.ContextHandler.doScope( > ContextHandler.java:1092)\n\tat org.eclipse.jetty.server.handl > er.ScopedHandler.handle(ScopedHandler.java:141)\n\tat > org.eclipse.jetty.server.handler.ContextHandlerCollection.ha > ndle(ContextHandlerCollection.java:213)\n\tat > org.eclipse.jetty.server.handler.HandlerCollection.handle( > HandlerCollection.java:119)\n\tat org.eclipse.jetty.server.handl > er.HandlerWrapper.handle(HandlerWrapper.java:134)\n\tat > org.eclipse.jetty.server.Server.handle(Server.java:518)\n\tat > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\n\tat > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)\n\tat > org.eclipse.jetty.io.AbstractConnection$ReadCallback. > succeeded(AbstractConnection.java:273)\n\tat org.eclipse.jetty.io > .FillInterest.fillable(FillInterest.java:95)\n\tat org.eclipse.jetty.io > .SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\n\tat > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume > .produceAndRun(ExecuteProduceConsume.java:246)\n\tat > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume > .run(ExecuteProduceConsume.java:156)\n\tat org.eclipse.jetty.util.thread. > QueuedThreadPool.runJob(QueuedThreadPool.java:654)\n\tat > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\n\tat > java.lang.Thread.run(Thread.java:745)\n", > "EOF": true, > "RESPONSE_TIME": 10 > } > ] > } > } > > Thank you! > > -Joe > >
