I have a schema defined in solr that has a few dynamic fields. We have the need to be able to get a list of keys, this is possible using solr, but it seems like it does the get of the data 1 at a time and is quite slow for 100 keys. So I am trying to do this one get of many using a cql like "select * from catalog where key in (,,,,);". But after the query executes, if I try to do a row.getString("dynamic_field_name_here"); it throws out an error. "my_dynamic_field_name is not a column defined in this metadata". So I printed out all the columns in the meta data expecting to at least see something, but none of the dynamic fields are listed there. How do I get that data out using cql? Its clearly listed under the explorer in opscenter as a column.
In an effort to consolidate free help offered for our products we have decided to move these forums to a more widely used forum. Please use one of the following queries (or any combination):
- Cassandra: tag search or plain text search
- DataStax Enterprise: tag search or plain text search
- DataStax OpsCenter: tag search or plain text search
Solr dynamic fields and also using CQL(4 posts) (2 voices)
which DSE version are you running?
I'm using 3.1.0.
Sorry, forgot to ask: is it cql2 or cql3? And which client are you using?