<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Solr: Deleting Multiple Documents with One Request</title>
	<atom:link href="http://e-mats.org/2008/04/solr-deleting-multiple-documents-with-one-request/feed/" rel="self" type="application/rss+xml" />
	<link>http://e-mats.org/2008/04/solr-deleting-multiple-documents-with-one-request/</link>
	<description>Where desperate is just another word for a regular day.</description>
	<lastBuildDate>Tue, 07 Feb 2012 10:11:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mats</title>
		<link>http://e-mats.org/2008/04/solr-deleting-multiple-documents-with-one-request/comment-page-1/#comment-5325</link>
		<dc:creator>Mats</dc:creator>
		<pubDate>Tue, 20 Sep 2011 10:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://push.lindh.no/~mats/wordpress/wordpress/?p=8#comment-5325</guid>
		<description>Hi! I&#039;ve been on vacation for some time, so sorry about the late reply.

It&#039;s hard to say exactly what your problem is, unless you also supply the complete URL you&#039;re calling (and then try to open that through your browser to see the result). When it comes to using POST, you&#039;ll have to tell the URLConnection object that you want it to perform a POST request, have a look at the setRequestMethod method. You supply the content of the POST request by writing to the OutputStream of the connection object (which you can fetch by using getOutputStream() on connection).

Hope that helps or at least points you in the right direction!</description>
		<content:encoded><![CDATA[<p>Hi! I&#8217;ve been on vacation for some time, so sorry about the late reply.</p>
<p>It&#8217;s hard to say exactly what your problem is, unless you also supply the complete URL you&#8217;re calling (and then try to open that through your browser to see the result). When it comes to using POST, you&#8217;ll have to tell the URLConnection object that you want it to perform a POST request, have a look at the setRequestMethod method. You supply the content of the POST request by writing to the OutputStream of the connection object (which you can fetch by using getOutputStream() on connection).</p>
<p>Hope that helps or at least points you in the right direction!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jel</title>
		<link>http://e-mats.org/2008/04/solr-deleting-multiple-documents-with-one-request/comment-page-1/#comment-5308</link>
		<dc:creator>jel</dc:creator>
		<pubDate>Thu, 01 Sep 2011 16:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://push.lindh.no/~mats/wordpress/wordpress/?p=8#comment-5308</guid>
		<description>Hi.. Itried using this delete by query to delete multiple documents in solr. When i pass single id its being deleted but when i pass multiple ids it throws an exception http response 505 version not supported. What am i do wrong?? 
This is the code snippet..
            String urlString = SOLR_INDEX_URL + &quot;/update?stream.body=id:(&quot; + qryString   + &quot;)   &amp;commit=true&quot;;
            URL url = new URL(urlString);
            URLConnection connection = url.openConnection();
            connection.connect();

            // Get the response
            BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));

            while ((line = rd.readLine()) != null) {
                builder.append(line);
            }

            rd.close();


I&#039;m using get Metho and don&#039;t know if that has an effect. I would also appreciate if you could guide me how to use a POST Method in Solr.

Thanks,
Jel</description>
		<content:encoded><![CDATA[<p>Hi.. Itried using this delete by query to delete multiple documents in solr. When i pass single id its being deleted but when i pass multiple ids it throws an exception http response 505 version not supported. What am i do wrong??<br />
This is the code snippet..<br />
            String urlString = SOLR_INDEX_URL + &#8220;/update?stream.body=id:(&#8221; + qryString   + &#8220;)   &amp;commit=true&#8221;;<br />
            URL url = new URL(urlString);<br />
            URLConnection connection = url.openConnection();<br />
            connection.connect();</p>
<p>            // Get the response<br />
            BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));</p>
<p>            while ((line = rd.readLine()) != null) {<br />
                builder.append(line);<br />
            }</p>
<p>            rd.close();</p>
<p>I&#8217;m using get Metho and don&#8217;t know if that has an effect. I would also appreciate if you could guide me how to use a POST Method in Solr.</p>
<p>Thanks,<br />
Jel</p>
]]></content:encoded>
	</item>
</channel>
</rss>

