: Exactly, you can try it really easily, just remove one of your fields on the : example schema config and try to add content using the Java client API... : Well I'm using SOLRJ and it returns no error code for me. But anyway don't : you think the server should also have some logging informing that documents : are being discarded?
As someone who is not very familiar with SolrJ, I can imagine that perhaps it has a bug where it might not return an error code in situations like this (it would suprise me, but i can imagine it) however I'm really confused by your comment that the server isn't logging that documents are being discarded. If you try to index a document with a field SOlr doesn't recognize, it logs quite a big exception. This is easily reproducable using post.jar and the example schema (unchanged). Running this command... java -Ddata=args -jar post.jar '<add><doc><field name="hoss">hoss</field></doc></add>' ...triggers this log messages in Solr... Nov 29, 2007 6:09:28 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: ERROR:unknown field 'hoss' at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:245) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:66) at org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateRequestHandler.java:196) ... ...which leads me to suspect there's something wonky with your setup. exactly which version of Solr are you using, what does your SolrJ code look like, and what log messages do you see when a document is *successfully* indexed? you should see somehting like... INFO: {add=[SOLR1000]} 0 102 ...where the uniqueKey of your doc is in the []. If you don't see those messages, then you aren't looking in the right place for Solr's log messages. -Hoss