blipson89 / Synthesis

Synthesis is a universal object mapper for Sitecore
MIT License
75 stars 25 forks source link

Temporary fix #82

Closed sitecorepm closed 5 years ago

sitecorepm commented 5 years ago

This PR addresses an issue where fields are not being correctly translated into their Solr equivalent names.

Note the log entries below.

24324 22:47:20 INFO  Solr Query - ?q=(((_language:(en) AND _latestversion:(True)) AND _templatesimplemented_sm:(8894f95e838049379c1b7442a6944115)) AND ((-publish_date.hasvalue_b:(True)  *:*) OR publish_date.value_tdt:{2018-03-18T04:00:00Z TO *]))&rows=3&fl=*,score&fq=((topic:(61318689b2684e998afd8cc913f2fa04) OR tag:(f25e091ed9d14f3588deb79194acead4)) AND content_type.targetid_s:(00000000000000000000000000000000))&fq=_indexname:(sitecore_web_index)&wt=xml&sort=publish_date desc

24324 22:47:26 ERROR Solr Error : ["sort param field can't be found: publish_date"] - Query attempted: [(((_language:(en) AND _latestversion:(True)) AND _templatesimplemented_sm:(8894f95e838049379c1b7442a6944115)) AND ((-publish_date.hasvalue_b:(True)  *:*) OR publish_date.value_tdt:{2018-03-18T04:00:00Z TO *]))]