Solr
  1. Solr
  2. SOLR-3948

Calculate/display deleted documents in admin interface

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: web gui
    • Labels:
      None

      Description

      The admin interface shows you two totals that let you infer how many deleted documents exist in the index by subtracting Num Docs from Max Doc. It would make things much easier for novice users and for automated statistics gathering if the number of deleted documents were calculated for you and displayed.

      Last Modified: 3 minutes ago
      Num Docs: 12924551
      Max Doc: 13011778
      Version: 862
      Segment Count: 23

      1. SOLR-3948.patch
        3 kB
        Shawn Heisey

        Activity

        Hide
        Shawn Heisey added a comment -

        A patch against branch_4x that puts Deleted Docs into the admin interface. I may not have gotten everything that needs to be touched, this is my first look at the code that builds the gui.

        Show
        Shawn Heisey added a comment - A patch against branch_4x that puts Deleted Docs into the admin interface. I may not have gotten everything that needs to be touched, this is my first look at the code that builds the gui.
        Hide
        Shawn Heisey added a comment -

        I tried this patch against a trunk checkout today and it applied OK, though it did need the standard gnu fuzz of 1.

        ncindex@bigindy5 /index/src/trunk $ patch -p0 < ../SOLR-3948.patch
        patching file solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
        Hunk #1 succeeded at 1983 (offset -3 lines).
        patching file solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java
        patching file solr/webapp/web/tpl/dashboard.html
        patching file solr/webapp/web/js/scripts/dashboard.js

        Show
        Shawn Heisey added a comment - I tried this patch against a trunk checkout today and it applied OK, though it did need the standard gnu fuzz of 1. ncindex@bigindy5 /index/src/trunk $ patch -p0 < ../ SOLR-3948 .patch patching file solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java Hunk #1 succeeded at 1983 (offset -3 lines). patching file solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java patching file solr/webapp/web/tpl/dashboard.html patching file solr/webapp/web/js/scripts/dashboard.js
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1419939

        SOLR-3948: Calculate/display deleted documents in admin interface.

        Show
        Commit Tag Bot added a comment - [trunk commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1419939 SOLR-3948 : Calculate/display deleted documents in admin interface.
        Hide
        Mark Miller added a comment -

        Thanks Shawn! I also added the deletedDocs to the index stats you see when you click on an individual core in the admin ui.

        Show
        Mark Miller added a comment - Thanks Shawn! I also added the deletedDocs to the index stats you see when you click on an individual core in the admin ui.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1419940

        SOLR-3948: Calculate/display deleted documents in admin interface.

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1419940 SOLR-3948 : Calculate/display deleted documents in admin interface.

          People

          • Assignee:
            Mark Miller
            Reporter:
            Shawn Heisey
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development