diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-12 15:36:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-12 15:36:29 +0200 |
commit | 6776fd5a5d88667d58085441facb7fa0c98b76da (patch) | |
tree | e536f9e5d3f8fd59e68b26e3c8166f5ec55674d9 /archaeological_context_records | |
parent | d658fbb5b55c6ce318383b535732763e810b6537 (diff) | |
download | Ishtar-6776fd5a5d88667d58085441facb7fa0c98b76da.tar.bz2 Ishtar-6776fd5a5d88667d58085441facb7fa0c98b76da.zip |
basic vector search parameters (refs #2912)
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 9162a8aa0..a8517ed26 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -304,6 +304,12 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, polygon = models.PolygonField(_(u"Polygon"), blank=True, null=True) cached_label = models.TextField(_(u"Cached name"), null=True, blank=True, db_index=True) + PARENT_SEARCH_VECTORS = ['operation'] + BASE_SEARCH_VECTORS = ["cached_label", "label", "location", + "interpretation", "filling", "datings_comment", + "identification__label", "activity__label", + "excavation_technic__label"] + M2M_SEARCH_VECTORS = ["datings__period__label"] history = HistoricalRecords() class Meta: |