简体   繁体   中英

DataStax Enterprise: No search results from Solr

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM