Skip to content

Commit

Permalink
SOLR bugfix
Browse files Browse the repository at this point in the history
Fixes a bug where solr crashes when image occid is null
  • Loading branch information
evindunn committed Apr 29, 2020
1 parent fe8f939 commit 07bd85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/solr/data-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
o.associatedOccurrences, o.dynamicProperties
FROM omoccurrences AS o LEFT JOIN omcollections AS c ON o.collid = c.collid
WHERE o.occid = '${dih.delta.occid}'"
deltaQuery="SELECT occid FROM images i WHERE (i.InitialTimeStamp > CONVERT_TZ('${dih.last_index_time}','+00:00','-06:00'))
deltaQuery="SELECT occid FROM images i WHERE (i.InitialTimeStamp > CONVERT_TZ('${dih.last_index_time}','+00:00','-06:00')) AND occid IS NOT NULL
UNION SELECT o.occid FROM omoccurrences AS o WHERE (o.dateLastModified > CONVERT_TZ('${dih.last_index_time}','+00:00','-06:00'))">
<field column="occid" name="id"/>
<field column="occid" name="occid"/>
Expand Down

0 comments on commit 07bd85b

Please sign in to comment.