<?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: Escaping Characters in a Solr Query / Solr URL</title>
	<atom:link href="http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/</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: Alex</title>
		<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/comment-page-1/#comment-6688</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 07 Dec 2011 13:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://e-mats.org/?p=710#comment-6688</guid>
		<description>This also gives bad errors for date facets

For example ..

Your method turns the query into this...
http://localhost:8080/test/select?q=fqdn\:b\*&amp;facet=on&amp;facet.date.start=NOW&amp;facet.date.end=2012\-02\-05T13\:37\:29\+00\:00Z&amp;facet.date=ending&amp;facet.date.gap=\+7DAY&amp;rows=25&amp;wt=json

Making SOLR do this in the error log!

INFO: [] webapp=/test path=/select params={facet.date.start=NOW&amp;facet=on&amp;q=fqdn\:b\*&amp;facet.date=ending&amp;facet.date.gap=\+7DAY&amp;wt=json&amp;facet.date.end=2012\-02\-05T13\:36\:21\+00\:00Z&amp;rows=25} hits=0 status=400 QTime=1 
07-Dec-2011 13:37:29 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: date facet &#039;end&#039; is not a valid Date string: 2012\-02\-05T13\:37\:29\ 00\:00Z</description>
		<content:encoded><![CDATA[<p>This also gives bad errors for date facets</p>
<p>For example ..</p>
<p>Your method turns the query into this&#8230;<br />
<a href="http://localhost:8080/test/select?q=fqdn" rel="nofollow">http://localhost:8080/test/select?q=fqdn</a>\:b\*&amp;facet=on&amp;facet.date.start=NOW&amp;facet.date.end=2012\-02\-05T13\:37\:29\+00\:00Z&amp;facet.date=ending&amp;facet.date.gap=\+7DAY&amp;rows=25&amp;wt=json</p>
<p>Making SOLR do this in the error log!</p>
<p>INFO: [] webapp=/test path=/select params={facet.date.start=NOW&amp;facet=on&amp;q=fqdn\:b\*&amp;facet.date=ending&amp;facet.date.gap=\+7DAY&amp;wt=json&amp;facet.date.end=2012\-02\-05T13\:36\:21\+00\:00Z&amp;rows=25} hits=0 status=400 QTime=1<br />
07-Dec-2011 13:37:29 org.apache.solr.common.SolrException log<br />
SEVERE: org.apache.solr.common.SolrException: date facet &#8216;end&#8217; is not a valid Date string: 2012\-02\-05T13\:37\:29\ 00\:00Z</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: binit</title>
		<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/comment-page-1/#comment-5267</link>
		<dc:creator>binit</dc:creator>
		<pubDate>Thu, 18 Aug 2011 07:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://e-mats.org/?p=710#comment-5267</guid>
		<description>Very helpful post. 
@Shalin Shekhar Mangar Clientutils was good food too ;)</description>
		<content:encoded><![CDATA[<p>Very helpful post.<br />
@Shalin Shekhar Mangar Clientutils was good food too ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satish</title>
		<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/comment-page-1/#comment-1732</link>
		<dc:creator>Satish</dc:creator>
		<pubDate>Fri, 05 Nov 2010 17:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://e-mats.org/?p=710#comment-1732</guid>
		<description>ClientUtils class is escaping the space also. For example:

Input: hello there
Expected: hello there
Actual: hello\ there

This is giving problem as the final string will become as hello\+there when sent over HTTP.

Regards,
Satish.</description>
		<content:encoded><![CDATA[<p>ClientUtils class is escaping the space also. For example:</p>
<p>Input: hello there<br />
Expected: hello there<br />
Actual: hello\ there</p>
<p>This is giving problem as the final string will become as hello\+there when sent over HTTP.</p>
<p>Regards,<br />
Satish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avoid Escaping Spaces in the Query String in a Solr Query &#124; Mats Lindh</title>
		<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/comment-page-1/#comment-1236</link>
		<dc:creator>Avoid Escaping Spaces in the Query String in a Solr Query &#124; Mats Lindh</dc:creator>
		<pubDate>Sat, 30 Jan 2010 22:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://e-mats.org/?p=710#comment-1236</guid>
		<description>[...] up on the previous post about escaping values in a Solr query string, it&#8217;s important to note that you should not escape spaces in the query itself. The reason for [...]</description>
		<content:encoded><![CDATA[<p>[...] up on the previous post about escaping values in a Solr query string, it&#8217;s important to note that you should not escape spaces in the query itself. The reason for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mats</title>
		<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/comment-page-1/#comment-1198</link>
		<dc:creator>Mats</dc:creator>
		<pubDate>Sat, 23 Jan 2010 22:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://e-mats.org/?p=710#comment-1198</guid>
		<description>Good point. I&#039;ve used SolrJ quite a bit before, but I never thought about validating it against the same behaviour. SolrJ also escapes &quot; and ; which were missing from my list. I&#039;ve added them now.

Thanks for the update!</description>
		<content:encoded><![CDATA[<p>Good point. I&#8217;ve used SolrJ quite a bit before, but I never thought about validating it against the same behaviour. SolrJ also escapes &#8221; and ; which were missing from my list. I&#8217;ve added them now.</p>
<p>Thanks for the update!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shalin Shekhar Mangar</title>
		<link>http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/comment-page-1/#comment-1191</link>
		<dc:creator>Shalin Shekhar Mangar</dc:creator>
		<pubDate>Fri, 22 Jan 2010 21:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://e-mats.org/?p=710#comment-1191</guid>
		<description>You can verify this function against Solr&#039;s Java client ClientUtils.escapeQueryChars. See http://svn.apache.org/repos/asf/lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/util/ClientUtils.java</description>
		<content:encoded><![CDATA[<p>You can verify this function against Solr&#8217;s Java client ClientUtils.escapeQueryChars. See <a href="http://svn.apache.org/repos/asf/lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/util/ClientUtils.java" rel="nofollow">http://svn.apache.org/repos/asf/lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/util/ClientUtils.java</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

