mirror of https://github.com/apache/lucene.git
SOLR-4309: /browse: Improve JQuery autosuggest behavior
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1434613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57ec65c8e7
commit
e40f5acf04
|
@ -60,7 +60,20 @@ Upgrading from Solr 4.1.0
|
|||
Detailed Change List
|
||||
----------------------
|
||||
|
||||
(No changes yet)
|
||||
New Features
|
||||
----------------------
|
||||
|
||||
Bug Fixes
|
||||
----------------------
|
||||
|
||||
* SOLR-4309: /browse: Improve JQuery autosuggest behavior (janhoy)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
||||
|
||||
================== 4.1.0 ==================
|
||||
|
|
|
@ -20,7 +20,11 @@
|
|||
'v.template': 'suggest'
|
||||
}
|
||||
}
|
||||
);
|
||||
).keydown(function(e){
|
||||
if (e.keyCode === 13){
|
||||
$("#query-form").trigger('submit');
|
||||
}
|
||||
});
|
||||
|
||||
// http://localhost:8983/solr/terms?terms.fl=name&terms.prefix=i&terms.sort=count
|
||||
});
|
||||
|
|
|
@ -325,6 +325,7 @@ $.Autocompleter = function(input, options) {
|
|||
if (!options.matchCase)
|
||||
term = term.toLowerCase();
|
||||
var data = cache.load(term);
|
||||
data = null; // Avoid buggy cache and go to Solr every time
|
||||
// recieve the cached data
|
||||
if (data && data.length) {
|
||||
success(term, data);
|
||||
|
@ -398,7 +399,7 @@ $.Autocompleter.defaults = {
|
|||
max: 100,
|
||||
mustMatch: false,
|
||||
extraParams: {},
|
||||
selectFirst: true,
|
||||
selectFirst: false,
|
||||
formatItem: function(row) { return row[0]; },
|
||||
formatMatch: null,
|
||||
autoFill: false,
|
||||
|
|
Loading…
Reference in New Issue