diff --git a/app/corpora/events.py b/app/corpora/events.py index a63c4b54..4abd01d5 100644 --- a/app/corpora/events.py +++ b/app/corpora/events.py @@ -45,9 +45,10 @@ def corpus_analysis_query(query): else: chunk_size = 500 chunk_start = 0 + context = 100 while chunk_start < client.match_count: chunk = client.show_query_results(result_len=chunk_size, - context_len=100, + context_len=context, result_offset=chunk_start) socketio.emit('corpus_analysis_query', chunk, room=request.sid) chunk_start += chunk_size