<?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; Topic: CQL error message:mismatched input &#039;-&#039; expecting set null</title>
		<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 16:23:29 +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/topic/cql-error-messagemismatched-input-expecting-set-null" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2107</link>
			<pubDate>Mon, 11 Jun 2012 23:14:26 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2107@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;No I didn't, I just ran the query to make sure that it parsed correctly which actually can be done without adding any indexes. But as I look at the Cassandra code right now, it doesn't actually allow index names with '-' inside, unfortunately you would have to rename your column to &#34;mtype&#34; or &#34;m_type&#34;...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2106</link>
			<pubDate>Mon, 11 Jun 2012 23:05:05 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2106@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am not sure whats exactly going wrong in my server? Anyway thanks for helping me out.&#60;br /&#62;
This is the error I am seeing on the admin. I hope you would have renamed the index somehow. Could you share if you have done anything like that. Thanks again.&#60;/p&#62;
&#60;p&#62;HTTP Status 500 - java.lang.RuntimeException: java.io.IOException: InvalidRequestException(why:Illegal index name MyKeyspace_MyCF_m-type_index) java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: InvalidRequestException(why:Illegal index name MyKeyspace_MyCF_m-type_index) at com.datastax.bdp.plugin.AbstractPlugin.activate(AbstractPlugin.java:47) at org.apache.solr.core.CassandraCoreContainer.getContainer(CassandraCoreContainer.java:254) at org.apache.solr.core.CassandraCoreContainer.getCore(CassandraCoreContainer.java:179) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:189) at ...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2103</link>
			<pubDate>Mon, 11 Jun 2012 22:26:18 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2103@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I have tried running your query on DSE 2.0 with Solr enabled and didn't get parser error when I have correctly placed quotes e.g. solr_query='age:12 AND m-type:abc AND name:xyz' but indeed when I do solr_query='age:12 AND name:xyz' AND m-type:abc I get &#34;Bad Request: line 1:74 mismatched input '-' expecting set null&#34; and in your original comment you have closing quote *before* AND m-type:abc;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2102</link>
			<pubDate>Mon, 11 Jun 2012 22:05:09 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2102@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks for catching my silly mistakes. But I am still with my original problem. Do anyone know, Is it possible to do a solr search on a column name with &#34;-&#34; in it  (as mentioned in my example, m-type)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2098</link>
			<pubDate>Mon, 11 Jun 2012 20:27:13 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2098@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Seems like you forgot to put a closing quote in your query select * from MyCF where solr_query='age:12 AND m-type:abc AND name:xyz&#60;strong&#62;'&#60;/strong&#62;&#60;strong&#62;;&#60;/strong&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2096</link>
			<pubDate>Mon, 11 Jun 2012 19:12:58 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2096@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Sorry, that was an incorrect cql. What I wanted to try was&#60;br /&#62;
select * from MyCF where solr_query='age:12 AND m-type:abc AND name:xyz;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thepaul on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2095</link>
			<pubDate>Mon, 11 Jun 2012 19:04:58 +0000</pubDate>
			<dc:creator>thepaul</dc:creator>
			<guid isPermaLink="false">2095@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;It looks like you meant to put the &#34;AND m-type:abc&#34; part inside the solr query string, but it is outside.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL error message:mismatched input &#039;-&#039; expecting set null"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-error-messagemismatched-input-expecting-set-null#post-2094</link>
			<pubDate>Mon, 11 Jun 2012 18:45:49 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2094@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Context: Cassandra is my datastore and started the node with -s (Solr). I have Solr index created on few columns of one column family and they were all working fine.&#60;br /&#62;
Problem: Recently I added a column &#34;m-type&#34; in the same column family and added it to the solr schema.xml with indexed=true and stored=true. When I add this column to solr query through solr admin, I do not get the search result (for ex: age:36 AND name:xyz AND m-type:Buyer). CQl query (select * from MyCF where solr_query='age:12 AND name:xyz' AND m-type:abc;) gives an error: Bad Request: line 1:74 mismatched input '-' expecting set null.&#60;br /&#62;
Any help, appreciated,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
