I hear you on the API thing….   One reason why I’ve become more bullish on the 
Solr CLI is that in the future we’ll have better security.  Curl is great until 
you start needing to generate JWT tokens and participate in an oAuth lifecycle 
before you can issue a request and then it’s a pain.   I’m hoping we get to a 
point where when you issue a command that you need to be logged in for, the 
SolrCLI instructs you to open your web page, you log into Solr Admin, and then 
it grabs that token.   

I’m also looking forward to a near future where all the API commands are using 
out V2 infrastructure, and we can code generate the client.  Imagine every API 
command is just a simple pattern away in the SolrCLI?   Without a bunch of hand 
written code.   

Assuming we keep the CLI structure for issuing commands, thoughts on what I 
brought up?



> On Jul 8, 2023, at 5:03 PM, Ishan Chattopadhyaya <ichattopadhy...@gmail.com> 
> wrote:
> 
> I'd rather we remove all three and encourage users to issue API commands
> via curl.
> 
> I'm very much in favour of the scripts being used for only essential tasks,
> but not for things where the API can be used. With the APIs being the
> primary means to achieve tasks, users develop more familiarity when
> starting out.
> 
> On Sun, 9 Jul, 2023, 1:20 am Eric Pugh, <ep...@opensourceconnections.com 
> <mailto:ep...@opensourceconnections.com>>
> wrote:
> 
>> We have three commands in SolrCLI that create things:
>> 
>> create_core which only works in self managed mode.
>> create_collection which only works in solr cloud mode.
>> 
>> And then…
>> 
>> create that attempts to figure out what mode you are in and do the right
>> thing….
>> 
>> Wondering if this is really helping anyone?   Thoughts on either
>> eliminating the “create” command, or alternatively, eliminating the
>> “create_core” and “create_collection” commands, and only preserving
>> “create”?
>> 
>> Feels like right now we have sort of the worst of all worlds with multiple
>> ways of doing the same thing...
>> 
>> Eric
>> 
>> 
>> 
>> 
>> _______________________
>> Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 |
>> http://www.opensourceconnections.com <
>> http://www.opensourceconnections.com/> | My Free/Busy <
>> http://tinyurl.com/eric-cal>
>> Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <
>> https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
>> 
>> This e-mail and all contents, including attachments, is considered to be
>> Company Confidential unless explicitly stated otherwise, regardless of
>> whether attachments are marked as such.

_______________________
Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | 
http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | 
My Free/Busy <http://tinyurl.com/eric-cal>  
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed 
<https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
    
This e-mail and all contents, including attachments, is considered to be 
Company Confidential unless explicitly stated otherwise, regardless of whether 
attachments are marked as such.

Reply via email to