Skip to content
Snippets Groups Projects
Commit 29083b1c authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

kommenterte ut autocomplete

parent 215f362a
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ export default {
search_query: window.location.href.split("?q=")[1],
search_results: [],
article: {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}},
search: function(q) {
/*search: function(q) {
return new Promise(resolve => {
return axios.post(api_endpoint + '_search/',
{
......@@ -46,7 +46,7 @@ export default {
resolve(hits)
})
})
},
},*/
result_view: function(result) {
if (result._source)
return result._source.lemmas.map(x => x.word).join(', ')
......
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