Skip to content
Snippets Groups Projects
Commit dd5a8793 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed query for descriptive metadata

parent 53af3e37
No related branches found
No related tags found
No related merge requests found
......@@ -89,9 +89,11 @@ sub prepare_query ($opt) {
};
}
if (exists $opt->{descriptive}) {
#https://opster.com/guides/elasticsearch/search-apis/elasticsearch-match-multi-match-and-match-phrase-queries/#Multi-match-query
push @should, {
"match" => {
"transferMetadata.*" => "$opt->{descriptive}",
"multi_match" => {
"query" => "$opt->{descriptive}",
"fields" => ["transferMetadata.*"] # scan all metadata
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment