3
votes

I’m using DataStax 3.2.7 and have 2 rows in Cassandra that show up in cqlsh.

I cannot find these records in Solr, though, even after reloading the core and fully reindexing.

Any suggestions?

I also see this in the log: Type mapping versions older than 2 are unsupported for CQL3 table linkcurrent_search.content_items,​ forcing version 2.

1
Please provide more information about your cql/solr schema, solr config, and query.sbtourist
Hi, can you share the types you are using and your solr config? Have you changed the dseTypeMappingVersion element in your solrconfig?phact
Are other records coming back?phact
No records are coming back, the query is for any records. What do you mean by types that I'm using? Is that the Cassandra schema? Last but not least, I have no idea about why I should change dseTypeMappingVersion. P.S. Will attach the files in a moment.Joel Reymont
Here's the gist with all the files gist.github.com/wagerlabs/1c43da737553e6c97eecJoel Reymont

1 Answers

2
votes

When you are using Dynamic Fields to query Maps in Cassandra, you must begin the Key in your Map with the prefixed map literal. In your case the prefixed map literals are :

score_calculated_

score_value_

score_velocity_

shared_on_

The reason the error 'undefined field realtime' is coming is because realtime is not prefixed by the prefix specified for that field in schema.xml.

An example of what one of your records would look like would be:

{'score_value_realtime': 18.432}

Do the same for all the map values.

For more details see this url: http://www.datastax.com/documentation/datastax_enterprise/3.2/datastax_enterprise/srch/srchDynFlds.html