epugh commented on PR #4177:
URL: https://github.com/apache/solr/pull/4177#issuecomment-5729003938

   @janhoy one more question...   are you familiar iwth the `versions=true` 
property on indexing a documetn and what it does?  It appears that when you 
have that on and you hvae a add, a delete, and a deleteByQuery, you get this 
interesting nesting in the response:
   
   ```
     {
       "responseHeader": {
         "status": 0,
         "QTime": 12
       },
       "adds": ["new-doc", 1234567890],
       "deletes": ["old-doc", -1234567891],
       "deleteByQuery": ["category:obsolete", -1234567892]
     }
   ```
   
   Presumable, if we abandon in this api, at this point, the commands concept, 
then this reponse would be simplified.  If I did an add then maybe we have 
`touched_docs` or some field:
   
   ```
     {
       "responseHeader": {
         "status": 0,
         "QTime": 12
       },
       "touched_docs": [ 1234567890]
     }
   ```
   
   and deletedByQuery would be:
   
   Presumable, if we abandon in this api, at this point, the commands concept, 
then this reponse would be simplified.  If I did an add then maybe we have 
`touched_docs` or some field:
   
   ```
     {
       "responseHeader": {
         "status": 0,
         "QTime": 12
       },
       "touched_docs": [ -1234567892]
     }
   
   ```
   
   Or we keep the `adds`, `deletes`, `deleteByQuery`:
   
   ```
     {
       "responseHeader": {
         "status": 0,
         "QTime": 12
       },
       "adds": [ 1234567890],
       "deletes": [,-1234567891],
       "deleteByQuery": {
           "category:obsolete", [-1234567892]
        }
     }
   ```
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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