Re: Update JSON not working for me

2012-05-16 Thread Lance Norskog
This is my json variant of solr/example/exampledocs/post.sh. It takes an url as the first parameter. #!/bin/sh # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regardi

Re: Update JSON not working for me

2012-05-16 Thread rjain15
nabble.com/Update-JSON-not-working-for-me-tp3983709p3984236.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Update JSON not working for me

2012-05-16 Thread Yonik Seeley
On Wed, May 16, 2012 at 4:10 PM, rjain15 wrote: > 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, >

Re: Update JSON not working for me

2012-05-16 Thread rjain15
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.

Re: Update JSON not working for me

2012-05-16 Thread Michael Della Bitta
Lookout, the first end quote is in the wrong spot. Michael On Wed, May 16, 2012 at 3:29 PM, Yonik Seeley wrote: > On Wed, May 16, 2012 at 2:36 PM, rjain15 wrote: >> No. Changing to name:monsters didn't work > > OK, but you'll have to do that if you get the other part working. > >> Here is my gu

Re: Update JSON not working for me

2012-05-16 Thread Yonik Seeley
On Wed, May 16, 2012 at 2:36 PM, rjain15 wrote: > No. Changing to name:monsters didn't work OK, but you'll have to do that if you get the other part working. > Here is my guess, the UpdateJSON is not adding any new documents to the > existing index. If that's true, the most likely culprit is yo

Re: Update JSON not working for me

2012-05-16 Thread rjain15
e troubles. I am ready to dig deeper, if you can tell me what to look for... Thanks Rajesh -- View this message in context: http://lucene.472066.n3.nabble.com/Update-JSON-not-working-for-me-tp3983709p3984205.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Update JSON not working for me

2012-05-16 Thread Yonik Seeley
On Wed, May 16, 2012 at 1:43 PM, rjain15 wrote: > http://localhost:8983/solr/select?q=title:monsters&wt=json&indent=true Try switching title:monsters to name:monsters https://issues.apache.org/jira/browse/SOLR-2598 Looks like the data was changed to use the name field instead and the docs were n

Re: Update JSON not working for me

2012-05-16 Thread rjain15
"wt":"json", "q":"title:monsters"}}, "response":{"numFound":0,"start":0,"docs":[] }} Has anyone tried this with the latest nightly build on Windows 64 bit OS? Trying to figure out what is the difference. Th

Re: Update JSON not working for me

2012-05-16 Thread rjain15
"wt":"json", "q":"title:monsters"}}, "response":{"numFound":0,"start":0,"docs":[] }} Has anyone tried this with the latest nightly build on Windows 64 bit OS? Trying to figure out what is the difference. Th

Re: Update JSON not working for me

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

Re: Update JSON not working for me

2012-05-14 Thread Yonik Seeley
pdate/json here: >> >> >> >> >> >> http://wiki.apache.org/solr/**UpdateJSON<http://wiki.apache.org/solr/UpdateJSON> >> >> >> >> In your case, either leave out the "add" level or add a "doc" level >> >> bel

Re: Update JSON not working for me

2012-05-14 Thread Jack Krupansky
3:11 PM To: solr-user@lucene.apache.org ; yo...@lucidimagination.com Subject: Re: Update JSON not working for me Hi Yonik i tried without the json in the URL, the result was same but in XML format C:\Tools\Solr\apache-solr-4.0-2012-05-04_08-23-31\example\exampledocs>C:\tools\curl\curl h

Re: Update JSON not working for me

2012-05-14 Thread Rajesh Jain
or add a "doc" level > below > >> it. > >> > >> For example: > >> > >> curl http://localhost:8983/solr/**update/json< > http://localhost:8983/solr/update/json>-H 'Content-type:application/ > >> **json' -d '

Re: Update JSON not working for me

2012-05-14 Thread Rajesh Jain
ample/exampledocs has: > > "cat" : ["book","hardcover"], > > That is "book" singular, not "books" plural as in your query. There is no > stemming since it is a string field, not text. > > > -- Jack Krupansky > > -Ori

Re: Update JSON not working for me

2012-05-14 Thread Jack Krupansky
From: Rajesh Jain Sent: Monday, May 14, 2012 2:42 PM To: solr-user@lucene.apache.org Subject: Re: Update JSON not working for me Hi Jack I am following the http://wiki.apache.org/solr/UpdateJSON tutorials. The first example is of books.json, which I executed, but I dont see any books http://lo

Re: Update JSON not working for me

2012-05-14 Thread Yonik Seeley
t;> "add": {"doc": {"id" : "TestDoc1", "title" : "test1"} }, >> "add": {"doc": {"id" : "TestDoc2", "title" : "another test"} } >> }' >> >> -- Jack Krup

Re: Update JSON not working for me

2012-05-14 Thread Rajesh Jain
nt-type:application/ > **json' -d ' > { > "add": {"doc": {"id" : "TestDoc1", "title" : "test1"} }, > "add": {"doc": {"id" : "TestDoc2", "title" : "another test"}

Re: Update JSON not working for me

2012-05-14 Thread Jack Krupansky
{ "add": {"doc": {"id" : "TestDoc1", "title" : "test1"} }, "add": {"doc": {"id" : "TestDoc2", "title" : "another test"} } }' -- Jack Krupansky -----Original Message- Fr

Update JSON not working for me

2012-05-14 Thread Rajesh Jain
Hi, I am using the 4.x version of Solr, and following the UpdateJSON Solr Wiki 1. When I try to update using : curl 'http://localhost:8983/solr/update/json?commit=true' --data-binary @books.json -H 'Content-type:application/json' I don't see any Category as Books in Velocity based Solr Browser