Re: How to tell which core was used based on Json or XML response from Solr

2019-11-26 Thread Paras Lehana
Hey Rhys, We are using 2 jquery versions, because this tool is running a tool that > has an old version of jquery attached to it. Umm, okay, if you cannot tweak the tool to use the latest jQuery, I assume you have used noConflict to handle different versions. I need to know the core name, be

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread Christian Spitzlay
I was referring to David Hastings' suggestion of shielding solr from direct access which is something I strongly agree with. If you're not going with a PHP-based server-side application as to not expose your solr directly to the javascript application (and thus to possible manipulation by an en

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread rhys J
On Mon, Nov 25, 2019 at 10:43 AM David Hastings < hastings.recurs...@gmail.com> wrote: > you missed the part about adding &core= to the query: > &echoParams=all&core=mega > > returns for me: > > "responseHeader":{ > "status":0, > "QTime":0, > "params":{ > "q":"*:*", > "cor

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread Shawn Heisey
On 11/25/2019 8:30 AM, rhys J wrote: On Mon, Nov 25, 2019 at 2:10 AM Erik Hatcher wrote: add &core=&echoParams=all and the parameter will be in the response header. Erik Thanks. I just tried this, and all I got was this response: http://localhost:8983/solr/dbtr/select?q=debtor_id%3A%2

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread David Hastings
you missed the part about adding &core= to the query: &echoParams=all&core=mega returns for me: "responseHeader":{ "status":0, "QTime":0, "params":{ "q":"*:*", "core":"mega", "df":"text", "q.op":"AND", "rows":"10", "echoParams":"all"}}, also we ar

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread rhys J
On Mon, Nov 25, 2019 at 1:10 AM Paras Lehana wrote: > Hey rhys, > > What David suggested is what we do for querying Solr. You can figure out > our frontend implementation of Auto-Suggest by seeing the AJAX requests > fired when you type in the search box on www.indiamart.com. > That is pretty c

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread rhys J
> if you are taking the PHP route for the mentioned server part then I would > suggest > using a client library, not plain curl. There is solarium, for instance: > > https://solarium.readthedocs.io/en/stable/ > https://github.com/solariumphp/solarium > > It can use curl under the hood but you can

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread rhys J
On Mon, Nov 25, 2019 at 2:10 AM Erik Hatcher wrote: > add &core=&echoParams=all and the parameter will be in the response > header. > >Erik > Thanks. I just tried this, and all I got was this response: http://localhost:8983/solr/dbtr/select?q=debtor_id%3A%20393291&echoParams=all

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-25 Thread Christian Spitzlay
Hi rhys, if you are taking the PHP route for the mentioned server part then I would suggest using a client library, not plain curl. There is solarium, for instance: https://solarium.readthedocs.io/en/stable/ https://github.com/solariumphp/solarium It can use curl under the hood but you can pr

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-24 Thread Erik Hatcher
add &core=&echoParams=all and the parameter will be in the response header. Erik > On Nov 22, 2019, at 13:27, rhys J 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:

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-24 Thread Paras Lehana
Hey rhys, What David suggested is what we do for querying Solr. You can figure out our frontend implementation of Auto-Suggest by seeing the AJAX requests fired when you type in the search box on www.indiamart.com. Why are you using two jQuery files? If you have a web server, you already know tha

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-22 Thread David Hastings
i personally dont like php, but it may just be the easiest way to do what you need assuming you have a basic web server, send your search query to php, and use $_GET or $_POST to read it into a variable: https://www.php.net/manual/en/reserved.variables.get.php then send that to the solr server in

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-22 Thread rhys J
On Fri, Nov 22, 2019 at 1:39 PM David Hastings wrote: > 2 things (maybe 3): > 1. dont have this code facing a client thats not you, otherwise anyone > could view the source and see where the solr server is, which means they > can destroy your index or anything they want. put at the very least a

Re: How to tell which core was used based on Json or XML response from Solr

2019-11-22 Thread David Hastings
2 things (maybe 3): 1. dont have this code facing a client thats not you, otherwise anyone could view the source and see where the solr server is, which means they can destroy your index or anything they want. put at the very least a simple api/front end in between the javascript page for the use

How to tell which core was used based on Json or XML response from Solr

2019-11-22 Thread rhys J
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