Skip to content
Snippets Groups Projects
Commit e007cd39 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'iiif-words' into 'master'

Restrict IIIF search to words

See merge request !64
parents f2b06286 ae8c917c
No related branches found
No related tags found
1 merge request!64Restrict IIIF search to words
......@@ -336,7 +336,7 @@ class TranscriptionSearchAnnotationList(RetrieveAPIView):
return ESQuerySet(
query=ESQuerySet.make_query(
'elastic/search_transcriptions.json',
ctx={'query': self.request.query_params.get('q')},
ctx={'query': self.request.query_params.get('q'), 'type': 'word'},
),
es_index=settings.ES_INDEX_TRANSCRIPTIONS,
es_type=Transcription.INDEX_TYPE,
......
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