Hello,
it seems that example files in recent Solr distributions define dates using a pdate, not date type in the schema.xml file:
<fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
This type is not recognised as a date type by Scorched, because date types are defined in method SolrInterface._extract_datefields in file connection.py:
def _extract_datefields(self, schema):
ret = [x['name'] for x in
schema['fields'] if x['type'] == 'date']
ret.extend([x['name'] for x in schema['dynamicFields']
if x['type'] == 'date'])
return ret
Recognising pdateas a date could be achieved by replacing the two occurrences of the test:
by:
if x['type'] in ('date', 'pdate')
For now, the workaround is to rename pdate to date in the schema file.
Hello,
it seems that example files in recent Solr distributions define dates using a
pdate, notdatetype in theschema.xmlfile:This type is not recognised as a date type by Scorched, because date types are defined in method
SolrInterface._extract_datefieldsin fileconnection.py:Recognising
pdateas a date could be achieved by replacing the two occurrences of the test:by:
For now, the workaround is to rename
pdatetodatein the schema file.