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
nabble.com/Update-JSON-not-working-for-me-tp3983709p3984236.html
Sent from the Solr - User mailing list archive at Nabble.com.
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,
>
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.
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
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
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.
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
"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
"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
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.
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
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
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 '
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
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
t;> "add": {"doc": {"id" : "TestDoc1", "title" : "test1"} },
>> "add": {"doc": {"id" : "TestDoc2", "title" : "another test"} }
>> }'
>>
>> -- Jack Krup
nt-type:application/
> **json' -d '
> {
> "add": {"doc": {"id" : "TestDoc1", "title" : "test1"} },
> "add": {"doc": {"id" : "TestDoc2", "title" : "another test"}
{
"add": {"doc": {"id" : "TestDoc1", "title" : "test1"} },
"add": {"doc": {"id" : "TestDoc2", "title" : "another test"} }
}'
-- Jack Krupansky
-----Original Message-
Fr
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
20 matches
Mail list logo