From 5d1acc39a76a29d603cf227a74f66661dc45f482 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 19 Aug 2019 14:43:18 -0300 Subject: [PATCH] HOT-FIX: conserta tipo data em managed-schema --- sapl/base/search_indexes.py | 6 +++--- solr/sapl_configset/conf/managed-schema | 2 +- solr/sapl_configset/conf/saplconfigset.zip | Bin 28081 -> 28098 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sapl/base/search_indexes.py b/sapl/base/search_indexes.py index 4f2b7a553..b0479d401 100644 --- a/sapl/base/search_indexes.py +++ b/sapl/base/search_indexes.py @@ -118,7 +118,7 @@ class TextExtractField(CharField): class DocumentoAcessorioIndex(CelerySearchIndex, Indexable): model = DocumentoAcessorio - index_date = DateTimeField(model_attr='data') + data = DateTimeField(model_attr='data', null=True) text = TextExtractField( document=True, use_template=True, model_attr=( @@ -144,7 +144,7 @@ class DocumentoAcessorioIndex(CelerySearchIndex, Indexable): class NormaJuridicaIndex(DocumentoAcessorioIndex): model = NormaJuridica - index_date = DateTimeField(model_attr='data') + data = DateTimeField(model_attr='data', null=True) text = TextExtractField( document=True, use_template=True, model_attr=( @@ -159,7 +159,7 @@ class NormaJuridicaIndex(DocumentoAcessorioIndex): class MateriaLegislativaIndex(DocumentoAcessorioIndex): model = MateriaLegislativa - index_date = DateTimeField(model_attr='data_apresentacao') + data = DateTimeField(model_attr='data_apresentacao') text = TextExtractField( document=True, use_template=True, model_attr=( diff --git a/solr/sapl_configset/conf/managed-schema b/solr/sapl_configset/conf/managed-schema index e924eb5a3..771c83a51 100644 --- a/solr/sapl_configset/conf/managed-schema +++ b/solr/sapl_configset/conf/managed-schema @@ -120,7 +120,7 @@ - +