noblepaul edited a comment on pull request #1863:
URL: https://github.com/apache/lucene-solr/pull/1863#issuecomment-697054163


   > At the point, the schema is created (based on all data) but nothing is 
actually indexed; the user can review and adjust the schema without any issues
   
   How do you expect the schema to be adjusted? User has no idea what just 
happened
   
   I'm assuming Step 2 won't be required as it will be built into the end 
point. 
   
   Is it possible to just return the commands to create a schema?
   
   example
   
   ```
   bin/post -c guess -params "guess-schema=true" example/films/films.json
   ```
   the response can be
   
   ```
   curl -X POST -H 'Content-type: application/json' -d '{"add-field":[
   {
   "name":"id",  
   "type":"string",
    "stored":true },
   {
   "name":"desc",  
   "type":"text",
    "stored":true
    }
   ]}' http://localhost:8983/solr/guess/schema
   ```
   The user has the following choices
   
   1. Run the command as is
   2. edit the command and post it
   
   My point is , our guess schema is worse than useless and anything that it 
creates will be WRONG for 99% of users. Why bother creating the fields in 
schema when we know fully well that user will have to edit the schema in ZK 
soon after


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to