Re: Trouble Enabling Query Indexing

2015-06-13 Thread fluffy
Val, never mind, I think that did it. I had to make a couple of other changes in my environment, but that I think allowed indexing to work again. I never realized that the Spring XML definition and the java DSL of a Cache are mutually exclusive? From GridGain I was used to specifying the basics

Re: Trouble Enabling Query Indexing

2015-06-12 Thread Valentin Kulichenko
Fluffy, You have a cache configuration in both code and XML. The one in XML is actually used, but it doesn't provide indexed types. Your code configuration looks correct, so I think you should simply remove it from XML. -Val On Fri, Jun 12, 2015 at 1:39 PM, fluffy fhaf...@gmail.com wrote: I

Re: Trouble Enabling Query Indexing

2015-06-12 Thread dsetrakyan
fluffy wrote I'm having the same issue with the latest release. Did you ever find a solution or this? Forian, does the solution provided in this thread with @ScacheCacheQuerySqlField annotation work for you? D. - D. -- View this message in context:

Re: Trouble Enabling Query Indexing

2015-06-12 Thread leroyJr
Fluffy, We ended up using the @ScalarCacheQuerySqlField annotation that dsetrakyan suggested. Additionally we had limited success depending on the key type being indexed. Take a look at http://apache-ignite-users.70518.x6.nabble.com/SQL-query-question-tc426.html When we used Scala's Int as a

Re: Trouble Enabling Query Indexing

2015-05-26 Thread sergi
By the way in Scala you should use @ScalarCacheQuerySqlField annotation. Ignite has ScalarCacheQueryExample in examples to show how it works. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Trouble-Enabling-Query-Indexing-tp377p409.html Sent from the Apache

Re: Trouble Enabling Query Indexing

2015-05-25 Thread leroyJr
Thanks Abhishek, I was hoping that would do the case too. Despite setting the index types like you suggested, and then creating the cache, I still get the following error when attempting to query (this is the same error I received before setting the index types too.) javax.cache.CacheException:

Re: Trouble Enabling Query Indexing

2015-05-25 Thread sergi
Please look at CacheConfiguration.setIndexedTypes method. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Trouble-Enabling-Query-Indexing-tp377p406.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.