Skip to content
Snippets Groups Projects
Commit d8bb5aec authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Use keyword types for exact values

parent edbbc68f
No related branches found
No related tags found
1 merge request!96Fix act search on all corpora
......@@ -28,11 +28,11 @@ class Indexer(object):
"transcriptions": {
"type": "nested",
"properties": {
"id": {"type": "text"},
"type": {"type": "text"},
"id": {"type": "keyword"},
"type": {"type": "keyword"},
"score": {"type": "float"},
"text": {"type": "text"},
"corpus": {"type": "text"}
"corpus": {"type": "keyword"}
}
}
}
......
......@@ -24,7 +24,7 @@
{% elif corpora_ids %}
{
"terms": {
"transcriptions.corpus.keyword": [
"transcriptions.corpus": [
{% for corpus_id in corpora_ids %}
"{{ corpus_id }}"{% if forloop.revcounter0 != 0 %},{% endif %}
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment