getSearchPreferences() function does not seem to exist.
$("#search-form").on("submit", function() {
var e = $(this).find("input");
require(["search"], function(t) {
var n = t.getSearchPreferences();
n.term = e.val(); //error here because n is null
t.query(n, function() {
e.val("")
})
});
return false
});
getSearchPreferences() function does not seem to exist.