Hi Hoss.

I'm using Solr 1.2 and a SolrJ client built from the trunk some time ago
(21st of June 2007).

When a document is indexed I can see that INFO message on my logs showing
exactly what you said, but nothing is logged in this situation I've
described initially.

I'm using this logging conf:

handlers=java.util.logging.FileHandler
.level=INFO
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.pattern=/tmp/log/solr.log
java.util.logging.FileHandler.limit=10000000
java.util.logging.FileHandler.count=10
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter

Thanks for your help.

Regards,
Daniel


On 30/11/07 02:13, "Chris Hostetter" <[EMAIL PROTECTED]> wrote:

> 
> : 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(RunUpdateProces
> sorFactory.java:66)
>         at 
> org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateRequest
> Handler.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
> 


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                        

Reply via email to