Commit 30121e62 authored by Pepe Marquez's avatar Pepe Marquez
Browse files

Added suggestions to results.eln.lab_ids for search and fix in normalizer

parent 56cefa9a
Pipeline #137556 passed with stages
in 69 minutes and 44 seconds
......@@ -263,7 +263,7 @@ class SampleID(ArchiveSection):
if self.sample_id:
if not archive.results.eln.lab_ids:
archive.results.eln.lab_ids = []
archive.results.eln.lab_ids.append(self.sample_id)
archive.results.eln.lab_ids.append(self.sample_id.replace('_', ' '))
if not archive.results.eln.sections:
archive.results.eln.sections = []
......
......@@ -2154,7 +2154,9 @@ class ELN(MSection):
description='''
The laboratory specific id for any item, e.g. sample, chemical, instrument.
''',
a_elasticsearch=Elasticsearch(search_entry_type))
a_elasticsearch=[
Elasticsearch(search_entry_type),
Elasticsearch(suggestion='default')])
class Results(MSection):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment