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
Yonik
You are the best !!!
Yes, as soon as I changed the "Content-type:application/json" it worked.
Now I can see all my updates to the book category.
I am ready to roll, thanks for the patience and help.
regards
Rajesh
--
View this message in context:
http://lucene.472066.n3.nabble.com/U
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,
>
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.
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
Hi,
No. Changing to name:monsters didn't work
Here is my guess, the UpdateJSON is not adding any new documents to the
existing index.
The document count remains the same after I call the UpdateJSON.
I am new to Solr, my guess is that if there is some underlying schema that
dictates what can
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
Hi
I have tried with the latest nightly build
apache-solr-4.0-2012-05-15_08-20-37
I am trying on a Windows 64 bit OS, I believe you have tested this on the
LINUX box (based on the shell script)
Not sure what I am missing, but the doesn't seem to work:
I have changed the URL to just call the upd
Hi
I have tried with the latest nightly build
apache-solr-4.0-2012-05-15_08-20-37
I am trying on a Windows 64 bit OS, I believe you have tested this on the
LINUX box (based on the shell script)
Not sure what I am missing, but the doesn't seem to work:
I have changed the URL to just call the upd
I haven't modified any schema or config. I am going to do it all over...clean
install.
I tried with 3.6 and I have the same issue.
I am going to try with 4.x one more time, its been painful, I am so excited
to use Solr for my project, and seems I am stuck on the basics.
Thanks
Rajesh
--
Vie
On Mon, May 14, 2012 at 3:11 PM, Rajesh Jain wrote:
> Hi Yonik
>
> i tried without the json in the URL, the result was same but in XML format
Interesting... the XML response is fine (just not ideal).
When I tried it, I did get a JSON response (perhaps I'm running a
later version of trunk... the
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
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
http://localhost:8983/solr/update?commit=true --data-binary @money.json -H
'Content-type:application/json'
045
On Mon
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
I think this may be due to https://issues.apache.org/jira/browse/SOLR-2857
JIRA is down right now so I can't check, but I thought the intent was
to have some back compat.
Try changing the URL from /update/json to just /update in the meantime
-Yonik
http://lucidimagination.com
On Mon, May 14, 20
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://localhost:8983/solr/collection1/browse?q=cat%3Dbooks
0 results found in 26 ms Page 0 of 0
I modified the books.json to add my own
Check the examples of update/json here:
http://wiki.apache.org/solr/UpdateJSON
In your case, either leave out the "add" level or add a "doc" level below
it.
For example:
curl http://localhost:8983/solr/update/json -H
'Content-type:application/json' -d '
{
"add": {"doc": {"id" : "TestDoc1",
19 matches
Mail list logo