We get the index size from stats - this is sometimes useful especially if changing indexing code or mappings.

We don't show it currently, just need to add it to the UI so it doesn't have to be dug out of the DB.

CommentFileSizeAuthor
#3 search-index-size.png80.53 KBpwolanin
#2 1470794-2.patch3.05 KBpwolanin

Comments

pwolanin’s picture

Oh, now I remember - this only works if replication is enabled, though we should be able to hide if that's not.

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new3.05 KB

this also does a little cleanup to use current() instead of [0] which I think is safer to avoid notices.

pwolanin’s picture

StatusFileSize
new80.53 KB

samlerner’s picture

Subscribing.

nick_vh’s picture

Did a quick lookup for index size without replication and that seems be to be impossible as pwolanin mentions. Too bad!
Patch can go in I think. The current cleanup looks ok also

nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed to D7

nick_vh’s picture

Status: Patch (to be ported) » Fixed

pushed to 6.x-3.x with minor change (the value enclosed by a t() was in a different location)

nick_vh’s picture

Status: Fixed » Closed (fixed)