[
https://issues.apache.org/jira/browse/OAK-6471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093093#comment-16093093
]
Thomas Mueller commented on OAK-6471:
-------------------------------------
I think using Json is a good idea. I have implemented Json to Oak mapping
(well, using the JCR API, but that's a small difference) for the
JsonIndexCommand. It works quite well. There is some, but not much, magic. For
example, for the value type of jcr:primaryType (maybe we want to support
mixings as well). Numbers are long except if they contains a dot, in which case
it's Double. In case you need to set the value type (I don't think you need to,
for index definitions), I used an escape mechanism at the property _name_
level: if a property starts with a {, then the property type follows. I think
this is better than setting the type at the value, because e.g. empty arrays
also have a type.
> Support adding or updating index definitions via oak-run
> --------------------------------------------------------
>
> Key: OAK-6471
> URL: https://issues.apache.org/jira/browse/OAK-6471
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Components: indexing, run
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.8
>
>
> Currently oak-run can be used to reindex an existing index present in
> NodeStore. I would like to extend this feature set to support adding or
> updating the index definition and then reindexing them. The end user story
> would be like below
> Development team updates or introduces a new index definition and gives it to
> system admin. Then admin can use oak-run and give it reference to the index
> definition and then tooling takes care of indexing (with read only mode) and
> then importing the updated index definition back into the repository.
> To start with the index definitions would be provided as a json file with a
> single json file containing index definitions which needs to be reindexed.
> The file format would be similar to one we used for dumping index definition
> (OAK-6224).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)