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

Chetan Mehrotra commented on OAK-6224:
--------------------------------------

Done initial commit in 1795321. The command can be used like below

{noformat}
$ java -jar target/oak-run-1.8-SNAPSHOT.jar index --fds-path=/path/to/datastore 
 /path/to/segmentstore/
counter(1)
==========

/oak:index/counter
    Type                    : counter

Index stats stored at /path/to/index-info.txt
Index definitions stored at /path/to/index-definitions.json
{noformat}

This would generate two text files
* index-info.txt - Index related stats
* index-definitions.json - Index definitions

This is the default behaviour unless and index action is defined. For now there 
are 2 and both are enabled by default. Later we would be adding actions for 
checking consistency, dumping index content and actual indexing
{noformat}
--index-definitions      Collects and dumps index definitions                 
--index-info             Collects and dumps information related to the indexes
{noformat}

[~catholicon] [~tmueller] [~teofili] Would be helpful to get your feedback on 
the way index command is work. Any suggestion on what else it should do

> Enable dumping index definitions and stats via oak-run
> ------------------------------------------------------
>
>                 Key: OAK-6224
>                 URL: https://issues.apache.org/jira/browse/OAK-6224
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: run
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.8
>
>
> oak-run index command should provide support for dumping index stats and 
> definitions



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to