[ 
https://issues.apache.org/jira/browse/SOLR-9443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15444235#comment-15444235
 ] 

Shawn Heisey commented on SOLR-9443:
------------------------------------

In my index maintenance code (using SolrJ), my deleteByQuery method runs the 
query string as a regular query to get the count, then proceeds with a delete 
if the count is more than zero.

[~mkhludnev], I have no idea what happens at the Lucene level.  If Lucene is 
able to determine how many documents matched, Solr should probably include 
something like "numDeleted" in the response.  This might get complicated with 
distributed indexes and SolrCloud, but I think it would be doable.

> Provide feedback on record count for deleteByQuery
> --------------------------------------------------
>
>                 Key: SOLR-9443
>                 URL: https://issues.apache.org/jira/browse/SOLR-9443
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: update
>    Affects Versions: 6.2
>            Reporter: Houston Putman
>            Priority: Minor
>
> Add option for users to request a count of the number of documents deleted 
> for an update request.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to