Hi 

Firstly, apologies for the long post, I changed the quote to double quote
(and sometimes it is messy copying from DOS windows)

Here is the command and the output on the Jetty Server Window. I am
highlighting some important pieces, 
I have enabled the LOG LEVEL to DEBUG on the JETTY window. 

C:\Tools\Solr\apache-solr-4.0-2012-05-15_08-20-37\example\exampledocs>C:\tools\curl\curl
"http://localhost:8983/solr/update?commit=true"; --data-binary @books.js
on -H 'Content-type:application/json'

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">1930</int
></lst>
</response>



2012-05-16 16:05:49.636:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.core.IndexDeletionPolicyWrapper$IndexCommitWrapper from
WebAppClassLoader=sol
May 16, 2012 4:05:49 PM org.apache.solr.core.SolrDeletionPolicy onInit
INFO: SolrDeletionPolicy.onInit: commits:num=1
       
commit{dir=C:\Tools\Solr\apache-solr-4.0-2012-05-15_08-20-37\example\solr\data\index,segFN=segments_3,generation=3,filenames=[_1_nrm.cfs,
_0_0.frq, _0
May 16, 2012 4:05:49 PM org.apache.solr.core.SolrDeletionPolicy
updateCommits
*INFO: newest commit = 3*
2012-05-16 16:05:49.723:DBUG:oejw.WebAppClassLoader:loaded interface
java.util.concurrent.Future
2012-05-16 16:05:49.737:DBUG:oejw.WebAppClassLoader:loaded interface
java.util.concurrent.Future from null
May 16, 2012 4:05:49 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start
commit{flags=0,version=0,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false}
2012-05-16 16:05:49.781:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.lucene.index.BufferedDeletesStream$ApplyDeletesResult from
WebAppClassLoader=solr@
May 16, 2012 4:05:49 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening Searcher@1cac622a main
2012-05-16 16:05:49.835:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.core.SolrCore$2 from WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:49.849:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.core.SolrCore$4 from WebAppClassLoader=solr@62ebcdbb
May 16, 2012 4:05:49 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
2012-05-16 16:05:49.865:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.search.SolrIndexSearcher$8 from
WebAppClassLoader=solr@62ebcdbb
May 16, 2012 4:05:49 PM org.apache.solr.core.QuerySenderListener newSearcher
INFO: QuerySenderListener sending requests to Searcher@1cac622a
main{StandardDirectoryReader(segments_3:5 _0(4.0):Cv32 _1(4.0):C2)}
May 16, 2012 4:05:49 PM org.apache.solr.core.QuerySenderListener newSearcher
INFO: QuerySenderListener done.
May 16, 2012 4:05:49 PM org.apache.solr.core.SolrCore registerSearcher
INFO: [collection1] Registered new searcher Searcher@1cac622a
main{StandardDirectoryReader(segments_3:5 _0(4.0):Cv32 _1(4.0):C2)}
May 16, 2012 4:05:49 PM org.apache.solr.update.processor.LogUpdateProcessor
finish
INFO: [collection1] webapp=/solr path=/update params={commit=true&[
  {
    "id" : "978-0641723445",
    "cat" : ["book","hardcover"],
    "name" : "The Lightning Thief",
    "author" : "Rick Riordan",
    "series_t" : "Percy Jackson and the Olympians",
    "sequence_i" : 1,
    "genre_s" : "fantasy",
    "inStock" : true,
    "price" : 12.50,
    "pages_i" : 384
  }
,
  {
    "id" : "978-1423103349",
    "cat" : ["book","paperback"],
    "name" : "The Sea of Monsters",
    "author" : "Rick Riordan",
    "series_t" : "Percy Jackson and the Olympians",
    "sequence_i" : 2,
    "genre_s" : "fantasy",
    "inStock" : true,
    "price" : 6.49,
    "pages_i" : 304
  }
,
  {
    "id" : "978-1857995879",
    "cat" : ["book","paperback"],
    "name" : "Sophie's World : The Greek Philosophers",
    "author" : "Jostein Gaarder",
    "sequence_i" : 1,
    "genre_s" : "fantasy",
    "inStock" : true,
    "price" : 3.07,
    "pages_i" : 64
  }
,
  {
    "id" : "978-1933988177",
    "cat" : ["book","paperback"],
    "name" : "Lucene in Action, Second Edition",
    "author" : "Michael McCandless",
    "sequence_i" : 1,
    "genre_s" : "IT",
    "inStock" : true,
    "price" : 30.50,
    "pages_i" : 475
  }
]
=} {commit=} 0 1930
2012-05-16 16:05:50.621:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.response.TextResponseWriter from
WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:50.634:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.response.XMLWriter from WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:50.651:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.lucene.document.Document from WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:50.666:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.common.SolrDocument from WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:50.683:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.common.SolrDocumentList from WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:50.698:DBUG:oejw.WebAppClassLoader:loaded class
org.apache.solr.common.util.XML from WebAppClassLoader=solr@62ebcdbb
2012-05-16 16:05:50.713:DBUG:oejs.Server:RESPONSE /solr/update  200
2012-05-16 16:05:50.743:DBUG:oejh.HttpParser:filled -1/0
*2012-05-16 16:05:50.758:DBUG:oejs.AbstractHttpConnection:closed
BlockingHttpConnection@138297fe,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=0,l=0,c=-3}*




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Update-JSON-not-working-for-me-tp3983709p3984225.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to