Skip to content
Snippets Groups Projects
Commit cba378a7 authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Improvement: a dataset is not searchable unless the data-fr field is found.

parent b019ac1d
Branches
Tags
No related merge requests found
...@@ -32,7 +32,7 @@ def tag_doc( the_doc ): ...@@ -32,7 +32,7 @@ def tag_doc( the_doc ):
tag_dict['isRealTime'] = False tag_dict['isRealTime'] = False
# isQueryable? # isQueryable?
tag_dict['isQueryable'] = False tag_dict['isQueryable'] = False # default
if 'link' in the_doc['metadata-fr'].keys(): if 'link' in the_doc['metadata-fr'].keys():
for link in the_doc['metadata-fr']['link']: for link in the_doc['metadata-fr']['link']:
#print(link) #print(link)
...@@ -45,6 +45,7 @@ def tag_doc( the_doc ): ...@@ -45,6 +45,7 @@ def tag_doc( the_doc ):
# 'isPunctual', 'isLinear', 'isAreal' will be absent instead of being 'falsely' set to false! # 'isPunctual', 'isLinear', 'isAreal' will be absent instead of being 'falsely' set to false!
# isSearchable? # isSearchable?
tag_dict['isSearchable'] = False # default
if 'data-fr' in the_doc.keys(): if 'data-fr' in the_doc.keys():
tag_dict['isSearchable'] = True tag_dict['isSearchable'] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment