elastictools.search.sanitize_input removes forward-slashes along with other potentially problematic characters. This may or may not be necessary -- elasticsearch-dsl may do some sanitizing, Django may sanitize, and Elasticsearch itself may sanitize.
Whatever the case, nr_id are written to the search_hidden field (used to make things like creators and persons available to fulltext searches) without forward-slashes.
Applications that need to searchnr_id e.g. ddr-local and ddr-public must be aware of this.
elastictools.search.sanitize_input
removes forward-slashes along with other potentially problematic characters. This may or may not be necessary --elasticsearch-dsl
may do some sanitizing, Django may sanitize, and Elasticsearch itself may sanitize.Whatever the case,
nr_id
are written to thesearch_hidden
field (used to make things likecreators
andpersons
available to fulltext searches) without forward-slashes.Applications that need to search
nr_id
e.g.ddr-local
andddr-public
must be aware of this.Are we okay with this?