add &core=<core>&echoParams=all and the parameter will be in the response 
header. 

   Erik

> On Nov 22, 2019, at 13:27, rhys J <rhyssha...@gmail.com> wrote:
> 
> I'm implementing an autocomplete search box for Solr.
> 
> I'm using JSON as my response style, and this is the jquery code.
> 
> 
> var url='http://10.40.10.14:8983/solr/'+core+'/select/?q='+queryField +
> 
> query+'&version=2.2&hl=true&start=0&rows=50&indent=on&wt=json&callback=?&json.wrf=on_data';
> 
> jQuery_3_4_1.getJSON(url);
> 
> ___
> 
> on_data(data)
> {
> var docs = data.response.docs;
> jQuery_3_4_1.each(docs, function(i, item) {
> 
> var trLink = '<div><tr id="row-' + item.debtor_id + '"><mark><td><a
> href="#" onclick=local_goto_dbtr(' + item.debtor_id + '); return true;"> '
>     + item.debtor_id + '</a></mark></td>';
> 
> trLink += '<td>' + item.name1 + '</td>';
> trLink += '<td>' + item.dl1 + '</td>';
> trLink += '</tr></div>';
> 
> jQuery_3_4_1('#resultsTable').prepend(jQuery_3_4_1(trLink));
> });
> 
> }
> 
> the jQuery_3_4_1 variable is replacing $ because I needed to have 2
> different versions of jQuery running in the same document.
> 
> I'd like to know if there's something I'm missing that will indicate which
> core I've used in Solr based on the response.
> 
> Thanks,
> 
> Rhys

Reply via email to