I definitely agree with Erick, the stack trace you posted is not complete
again.
This is an example of the same problem you got with a complete, meaningful
stack trace :
"
Stacktrace you provided :

org.apache.solr.common.SolrException: Exception writing document id 12345
> to the index; possible analysis error.
> at
> org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:168)
> at
> org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
> at
> org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
> at
> org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:870)
> at
> org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:1024)
> at
> org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:693)
> …
> ------> Important stack trace follows !!
> Caused by: java.lang.IllegalArgumentException: input AttributeSource must
> not be null
> at org.apache.lucene.util.AttributeSource.<init>(AttributeSource.java:94)
> at org.apache.lucene.analysis.TokenStream.<init>(TokenStream.java:106)
> at org.apache.lucene.analysis.TokenFilter.<init>(TokenFilter.java:33)
> at
> org.apache.lucene.analysis.util.FilteringTokenFilter.<init>(FilteringTokenFilter.java:70)
> at org.apache.lucene.analysis.core.StopFilter.<init>(StopFilter.java:60)
> at
> org.apache.lucene.analysis.core.StopFilterFactory.create(StopFilterFactory.java:127)
> at
> org.apache.solr.analysis.TokenizerChain.createComponents(TokenizerChain.java:67)
> at
> org.apache.lucene.analysis.AnalyzerWrapper.createComponents(AnalyzerWrapper.java:102)
> at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:180)
> at org.apache.lucene.document.Field.tokenStream(Field.java:554)
> at
> org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:597)
> at
> org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:342)
> at
> org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:301)
> at
> org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:222)
> at
> org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:450)
> at
> org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1507)
> at
> org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:240)
> at
> org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:164)
> ... 35 more
> ",


If you give us all the stack trace, I am pretty sure we can help .


Cheers


2015-06-19 5:31 GMT+01:00 Erick Erickson <erickerick...@gmail.com>:

> The stack trace is what gets returned to the client, right? It's often
> much more informative to see the Solr log output, the error message
> is often much more helpful there. By the time the exception bubbles
> up through the various layers vital information is sometimes not returned
> to the client in the error message.
>
> One precaution I would take since you've changed the schema is to
> _completely_ remove the index.
> 1> shut down Solr
> 2> rm -rf coreX/data
> 3> restart Solr.
> 4> try it again.
>
> Lucene doesn't really care at all whether a field gets indexed one way in
> one document and another way in the next document and occasionally
> having fields indexed different ways (string and text) in different
> documents
> at the same time confuses things.
>
> Best,
> Erick
>
> On Thu, Jun 18, 2015 at 10:31 AM, Paden <rumsey...@gmail.com> wrote:
> > Just rolling out a little bit more information as it is coming. I
> changed the
> > field type in the schema to text_general and that didn't change a thing.
> >
> > Another thing is that it's consistently submitting/not submitting the
> same
> > documents. I will run over it one time and it won't index a set of
> > documents. When I clear the index and run the program again it
> > submits/doesn't submit the same documents.
> >
> > And it will index certain PDF's it just won't index others. Which is
> weird
> > because I printed the strings that are submitted to Solr and the ones
> that
> > get submitted are really similar to the ones that aren't submitted.
> >
> > I can't post the actual strings for sensitivity reasons.
> >
> >
> >
> > --
> > View this message in context:
> http://lucene.472066.n3.nabble.com/Error-when-submitting-PDF-to-Solr-w-text-fields-using-SolrJ-tp4212704p4212757.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to