You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Priti Solanki <pr...@gmail.com> on 2014/03/10 14:51:18 UTC

Curl : shell script : The requested resource is not available. update/extract !

Hi all,

Following throw "The request resource is not available"


curl "
http://localhost:8080/solr/#/dev/update/extract?stream.file=/home/priti/$file&literal.id=document$i&commit=true
"

I don't understand what is literal.id ?? Is it mandatory. [Please share
reading links if known]

 </head><body><h1>HTTP Status 404 - /solr/#/dev/update/extract</h1><HR
size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>*message*</b>
<u>/solr/#dev/update/extract</u></p><p><b>description</b> <u>The requested
resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/7.0.42</h3></bod

Whats wrong?

Regards,
Priti

Re: Curl : shell script : The requested resource is not available. update/extract !

Posted by Raymond Wiker <rw...@gmail.com>.
"literal.id" should contain a unique identifier for each document (assuming
that the unique identifier field in your solr schema is called "id"); see
http://wiki.apache.org/solr/ExtractingRequestHandler .

I'm guessing that the url for the ExtractinRequestHandler is incorrect, or
maybe you haven't even configured/enabled the ExtractingRequestHandler in
solr-config.xml. Further, from the url you show, I'm guessing that "$file"
and "$i" are references to shell variables that have been incorrectly
quoted (for example, by enclosing a constructed url in single quotes
instead of double quotes, if you're on a Unixoid platform.)


On Mon, Mar 10, 2014 at 2:51 PM, Priti Solanki <pr...@gmail.com>wrote:

> Hi all,
>
> Following throw "The request resource is not available"
>
>
> curl "
>
> http://localhost:8080/solr/#/dev/update/extract?stream.file=/home/priti/$file&literal.id=document$i&commit=true
> "
>
> I don't understand what is literal.id ?? Is it mandatory. [Please share
> reading links if known]
>
>  </head><body><h1>HTTP Status 404 - /solr/#/dev/update/extract</h1><HR
> size="1" noshade="noshade"><p><b>type</b> Status
> report</p><p><b>*message*</b>
> <u>/solr/#dev/update/extract</u></p><p><b>description</b> <u>The requested
> resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/7.0.42</h3></bod
>
> Whats wrong?
>
> Regards,
> Priti
>

Re: Curl : shell script : The requested resource is not available. update/extract !

Posted by Jack Krupansky <ja...@basetechnology.com>.
The "#" character introduces the "fragment" portion of a URL, so 
"/dev/update/extract" is not a part of the "path" of the URL. In this case 
the URL "path" is "/solr/" and the server is simply complaining that there 
is no code registered to process that path.

Normally, the collection name (core name) follows "/solr/".

-- Jack Krupansky

-----Original Message----- 
From: Priti Solanki
Sent: Monday, March 10, 2014 9:51 AM
To: solr-user@lucene.apache.org
Subject: Curl : shell script : The requested resource is not available. 
update/extract !

Hi all,

Following throw "The request resource is not available"


curl "
http://localhost:8080/solr/#/dev/update/extract?stream.file=/home/priti/$file&literal.id=document$i&commit=true
"

I don't understand what is literal.id ?? Is it mandatory. [Please share
reading links if known]

</head><body><h1>HTTP Status 404 - /solr/#/dev/update/extract</h1><HR
size="1" noshade="noshade"><p><b>type</b> Status 
report</p><p><b>*message*</b>
<u>/solr/#dev/update/extract</u></p><p><b>description</b> <u>The requested
resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/7.0.42</h3></bod

Whats wrong?

Regards,
Priti