add query completion

We are using ANTLR listeners to find out where in the
query the cursor is. Then we generate a list of keys/values
that might fit at that position. With that information we
can generate new queries and sort them by the number
of results they yield.
This commit is contained in:
2017-04-17 16:25:14 +02:00
parent f6a9fc2394
commit bcb2e6ca83
10 changed files with 396 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ $(document).ready(function(){
HttpMethod: "GET",
Delay: 300,
_QueryArg: function() {
var caretIndex = document.getElementById('search-input').selectionStart;
var caretIndex = document.getElementById('search-input').selectionStart + 1;
return 'caretIndex=' + caretIndex + '&query';
},
_Pre: function() {