<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<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">
	<channel>
		<title>DataStax Support Forums &#187; User Favorites: fadi</title>
		<link><a href='http://www.datastax.com/support-forums/profile/fadi'>fadi</a></link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 10:42:18 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Jack Krupansky on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8558</link>
			<pubDate>Mon, 21 Jan 2013 18:56:25 +0000</pubDate>
			<dc:creator>Jack Krupansky</dc:creator>
			<guid isPermaLink="false">8558@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;For now, stick with Solr &#34;string&#34; and CQL &#34;text&#34;/UTF8Type for the primary/unique key type.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fadi on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8551</link>
			<pubDate>Mon, 21 Jan 2013 10:29:43 +0000</pubDate>
			<dc:creator>Fadi</dc:creator>
			<guid isPermaLink="false">8551@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;What is the conclusion of this? If Cassandras table is using UUID type ID, then I cant use it as a unique id in SOLR?&#60;/p&#62;
&#60;p&#62;Solr is able to assign/generate UUIDs, but when tested on DSE 2.2.1 we get java.lang.RuntimeException: org.apache.solr.common.SolrException: Error loading class 'solr.UUIDUpdateProcessorFactory' &#60;/p&#62;
&#60;p&#62;The class exists in solr core jar file from apache but not the one bundled in DSE, is it OK to replace DSE solr jar files with ones ( same version ) from the net?&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
/Fadi
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tristanls on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8430</link>
			<pubDate>Tue, 15 Jan 2013 17:12:19 +0000</pubDate>
			<dc:creator>tristanls</dc:creator>
			<guid isPermaLink="false">8430@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Success! Thank you.&#60;/p&#62;
&#60;p&#62;The response if everything goes well is something like (as opposed to &#60;code&#62;SUCCESS&#60;/code&#62;):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#38;gt;&#60;br /&#62;
&#38;lt;response&#38;gt;&#60;br /&#62;
&#38;lt;lst name=&#34;responseHeader&#34;&#38;gt;&#38;lt;int name=&#34;status&#34;&#38;gt;0&#38;lt;/int&#38;gt;&#38;lt;int name=&#34;QTime&#34;&#38;gt;52&#38;lt;/int&#38;gt;&#38;lt;/lst&#38;gt;&#60;br /&#62;
&#38;lt;/response&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Both of your corrections were necessary (remove &#34;/resource&#34; and square brackets).&#60;/p&#62;
&#60;p&#62;I was surprised that square brackets were necessary, as the example from &#60;a href=&#34;http://wiki.apache.org/solr/UpdateJSON&#34; rel=&#34;nofollow&#34;&#62;http://wiki.apache.org/solr/UpdateJSON&#60;/a&#62; for Solr 4.0 (at the bottom) shows posting without square brackets:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
curl &#60;a href=&#34;http://localhost:8983/solr/update&#34; rel=&#34;nofollow&#34;&#62;http://localhost:8983/solr/update&#60;/a&#62; -H 'Content-type:application/json' -d '&#60;br /&#62;
 {&#60;br /&#62;
  &#34;id&#34;        : &#34;TestDoc1&#34;,&#60;br /&#62;
  &#34;title&#34;     : {&#34;set&#34;:&#34;test1&#34;},&#60;br /&#62;
  &#34;revision&#34;  : {&#34;inc&#34;:3},&#60;br /&#62;
  &#34;publisher&#34; : {&#34;add&#34;:&#34;TestPublisher&#34;}&#60;br /&#62;
 }'&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jack Krupansky on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8429</link>
			<pubDate>Tue, 15 Jan 2013 17:00:31 +0000</pubDate>
			<dc:creator>Jack Krupansky</dc:creator>
			<guid isPermaLink="false">8429@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Sorry for not noticing this before... take &#34;/resource&#34; out of your URLs. Too bad DSE is not giving you a proper error response. Also, you need square brackets around the document list, which is a JSON array of documents. For example:&#60;/p&#62;
&#60;p&#62;curl &#60;a href=&#34;http://localhost:8983/solr/initialtiny.solr/update/json?commit=true&#34; rel=&#34;nofollow&#34;&#62;http://localhost:8983/solr/initialtiny.solr/update/json?commit=true&#60;/a&#62; -H 'Content-Type:application/json' -d '[{&#34;id&#34;:&#34;aecfd710-5b64-11e2-bcfd-0800205c9a67&#34;,&#34;body&#34;:&#34;This is my awesome text. I hope it gets indexed&#34;}]' -v
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tristanls on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8425</link>
			<pubDate>Tue, 15 Jan 2013 15:04:35 +0000</pubDate>
			<dc:creator>tristanls</dc:creator>
			<guid isPermaLink="false">8425@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I changed &#60;code&#62;schema.xml&#60;/code&#62; to:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;schema name=&#34;initialtiny&#34; version=&#34;1.1&#34;&#38;gt;&#60;br /&#62;
  &#38;lt;types&#38;gt;&#60;br /&#62;
    &#38;lt;fieldType name=&#34;string&#34; class=&#34;solr.StrField&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;fieldType name=&#34;text&#34; class=&#34;solr.TextField&#34;&#38;gt;&#60;br /&#62;
      &#38;lt;analyzer&#38;gt;&#60;br /&#62;
        &#38;lt;tokenizer class=&#34;solr.StandardTokenizerFactory&#34;/&#38;gt;&#60;br /&#62;
      &#38;lt;/analyzer&#38;gt;&#60;br /&#62;
    &#38;lt;/fieldType&#38;gt;&#60;br /&#62;
  &#38;lt;/types&#38;gt;&#60;br /&#62;
  &#38;lt;fields&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;id&#34;  type=&#34;string&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;body&#34;  type=&#34;text&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
  &#38;lt;/fields&#38;gt;&#60;/p&#62;
&#60;p&#62;  &#38;lt;defaultSearchField&#38;gt;body&#38;lt;/defaultSearchField&#38;gt;&#60;br /&#62;
  &#38;lt;uniqueKey&#38;gt;id&#38;lt;/uniqueKey&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/schema&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;No change in behavior. (no data in Cassandra, no responses for &#60;code&#62;*:*&#60;/code&#62; query, &#60;code&#62;Column Name: _solr_update/json&#60;/code&#62; with document contents as &#60;code&#62;Index Options&#60;/code&#62; gets created instead)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jack Krupansky on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8413</link>
			<pubDate>Tue, 15 Jan 2013 00:33:39 +0000</pubDate>
			<dc:creator>Jack Krupansky</dc:creator>
			<guid isPermaLink="false">8413@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Sorry for the confusion. The field type for your &#34;id&#34; field should be &#34;string&#34;, not UUID.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tristanls on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8412</link>
			<pubDate>Mon, 14 Jan 2013 19:27:09 +0000</pubDate>
			<dc:creator>tristanls</dc:creator>
			<guid isPermaLink="false">8412@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Just tried it with the &#60;code&#62;post.jar&#60;/code&#62; tool from &#60;code&#62;apache-solr-4.0.0.tgz&#60;/code&#62;, and the exact same problem occurs (no data visible in Cassandra, no results for &#60;code&#62;*:*&#60;/code&#62; query).&#60;/p&#62;
&#60;p&#62;For reference, the document was stored in &#60;code&#62;doc.json&#60;/code&#62;, the command and output were:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
java -Dtype=application/json -Durl=http://localhost:8983/solr/resource/initialtiny.solr/update/json -jar post.jar doc.json&#60;br /&#62;
SimplePostTool version 1.5&#60;br /&#62;
Posting files to base url &#60;a href=&#34;http://localhost:8983/solr/resource/initialtiny.solr/update/json&#34; rel=&#34;nofollow&#34;&#62;http://localhost:8983/solr/resource/initialtiny.solr/update/json&#60;/a&#62; using content-type application/json..&#60;br /&#62;
POSTing file doc.json&#60;br /&#62;
1 files indexed.&#60;br /&#62;
COMMITting Solr index changes to &#60;a href=&#34;http://localhost:8983/solr/resource/initialtiny.solr/update/json.&#34; rel=&#34;nofollow&#34;&#62;http://localhost:8983/solr/resource/initialtiny.solr/update/json.&#60;/a&#62;.&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tristanls on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8409</link>
			<pubDate>Mon, 14 Jan 2013 17:20:12 +0000</pubDate>
			<dc:creator>tristanls</dc:creator>
			<guid isPermaLink="false">8409@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I forgot versions:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;dse-2.2.1&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;opscenter-2.1.2&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tristanls on "POST /update/json or /update/xml does not behave as expected"</title>
			<link>http://www.datastax.com/support-forums/topic/post-updatejson-or-updatexml-does-not-behave-as-expected#post-8408</link>
			<pubDate>Mon, 14 Jan 2013 17:18:23 +0000</pubDate>
			<dc:creator>tristanls</dc:creator>
			<guid isPermaLink="false">8408@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;&#60;code&#62;schema.xml&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
    &#38;lt;schema name=&#34;initialtiny&#34; version=&#34;1.1&#34;&#38;gt;&#60;br /&#62;
      &#38;lt;types&#38;gt;&#60;br /&#62;
        &#38;lt;fieldType name=&#34;string&#34; class=&#34;solr.StrField&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;fieldType name=&#34;text&#34; class=&#34;solr.TextField&#34;&#38;gt;&#60;br /&#62;
          &#38;lt;analyzer&#38;gt;&#60;br /&#62;
            &#38;lt;tokenizer class=&#34;solr.StandardTokenizerFactory&#34;/&#38;gt;&#60;br /&#62;
          &#38;lt;/analyzer&#38;gt;&#60;br /&#62;
        &#38;lt;/fieldType&#38;gt;&#60;br /&#62;
        &#38;lt;fieldType name=&#34;uuid&#34; class=&#34;solr.UUIDField&#34; multiValued=&#34;false&#34;/&#38;gt;&#60;br /&#62;
      &#38;lt;/types&#38;gt;&#60;br /&#62;
      &#38;lt;fields&#38;gt;&#60;br /&#62;
        &#38;lt;field name=&#34;id&#34;  type=&#34;uuid&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;field name=&#34;body&#34;  type=&#34;text&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
      &#38;lt;/fields&#38;gt;&#60;/p&#62;
&#60;p&#62;      &#38;lt;defaultSearchField&#38;gt;body&#38;lt;/defaultSearchField&#38;gt;&#60;br /&#62;
      &#38;lt;uniqueKey&#38;gt;id&#38;lt;/uniqueKey&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;/schema&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;solrconfig.xml&#60;/code&#62; (the request handler part)&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
  &#38;lt;requestHandler name=&#34;/update/json&#34;&#60;br /&#62;
                  class=&#34;solr.JsonUpdateRequestHandler&#34; /&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Once these are posted and column families and such are created, this is the end of the output from &#60;code&#62;cassandra-cli&#60;/code&#62; &#60;code&#62;describe initialtiny;&#60;/code&#62; (this will be relevant further down)&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
  ...&#60;br /&#62;
        Column Name: body&#60;br /&#62;
          Validation Class: org.apache.cassandra.db.marshal.UTF8Type&#60;br /&#62;
          Index Name: initialtiny3_solr_body_index&#60;br /&#62;
          Index Type: CUSTOM&#60;br /&#62;
          Index Options: {class_name=com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex}&#60;br /&#62;
      Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy&#60;br /&#62;
      Compression Options:&#60;br /&#62;
        sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;So, all good so far. I can also view this in OpsCenter, and see that column family was created, etc.&#60;/p&#62;
&#60;p&#62;When I attempt to add a document for indexing, via:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;curl &#60;a href=&#34;http://localhost:8983/solr/resource/initialtiny.solr/update/json?commit=true&#34; rel=&#34;nofollow&#34;&#62;http://localhost:8983/solr/resource/initialtiny.solr/update/json?commit=true&#60;/a&#62; -H &#38;#039;Content-Type:application/json&#38;#039; -d &#38;#039;{&#38;quot;id&#38;quot;:&#38;quot;aecfd710-5b64-11e2-bcfd-0800205c9a67&#38;quot;,&#38;quot;body&#38;quot;:&#38;quot;This is my awesome text. I hope it gets indexed&#38;quot;}&#38;#039; -v&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It returns &#60;code&#62;SUCCESS&#60;/code&#62;. However, no data is stored in Cassandra, and searching for &#60;code&#62;*:*&#60;/code&#62; returns 0 results.&#60;/p&#62;
&#60;p&#62;What's odd is that running &#60;code&#62;describe initialtiny;&#60;/code&#62; within &#60;code&#62;cassandra-cli&#60;/code&#62; displays the following at the end:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
  ...&#60;br /&#62;
        Column Name: body&#60;br /&#62;
          Validation Class: org.apache.cassandra.db.marshal.UTF8Type&#60;br /&#62;
          Index Name: initialtiny2_solr_body_index&#60;br /&#62;
          Index Type: CUSTOM&#60;br /&#62;
          Index Options: {class_name=com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex}&#60;br /&#62;
        Column Name: _solr_update/json&#60;br /&#62;
          Validation Class: org.apache.cassandra.db.marshal.UTF8Type&#60;br /&#62;
          Index Name: solr__solr_updatejson_idx_2&#60;br /&#62;
          Index Type: CUSTOM&#60;br /&#62;
          Index Options: {class_name=com.datastax.bdp.util.ConfigOnlyIndex, update/json={&#34;id&#34;:&#34;aecfd710-5b64-11e2-bcfd-0800205c9a67&#34;,&#34;body&#34;:&#34;This is my awesome text. I hope it gets indexed&#34;}&#60;br /&#62;
}&#60;br /&#62;
      Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy&#60;br /&#62;
      Compression Options:&#60;br /&#62;
        sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I was expecting that a document I POSTed would be indexed, and then added to Cassandra datastore.&#60;/p&#62;
&#60;p&#62;What happened was that the document was not added to Cassandra datastore and querying for &#60;code&#62;*:*&#60;/code&#62; results in 0 results.&#60;/p&#62;
&#60;p&#62;Additionally, the document I posted ends up as &#60;code&#62;Index Options&#60;/code&#62; field in column &#60;code&#62;_solr_update/json&#60;/code&#62; for some reason.&#60;/p&#62;
&#60;p&#62;How do I add documents to be indexed and stored by POSTing JSON to Solr?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
