You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Shawn Feldman (JIRA)" <ji...@apache.org> on 2014/12/05 22:12:14 UTC

[jira] [Commented] (USERGRID-255) Re-indexer That Removes Source from ES

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

Shawn Feldman commented on USERGRID-255:
----------------------------------------

A) and B) should be taken care of by EntityIndex.addIndex

> Re-indexer That Removes Source from ES
> --------------------------------------
>
>                 Key: USERGRID-255
>                 URL: https://issues.apache.org/jira/browse/USERGRID-255
>             Project: Usergrid
>          Issue Type: Story
>          Components: Stack
>            Reporter: Todd Nine
>            Assignee: David Johnson
>
> The two-dot-o Query Index module currently stores both document source and fields in ElasticSearch. Since we only ever retrieve ID numbers from ES, there is no need for us to store source and it is a waste of resources.
> This is what we need:
> 1) A way to configure Usergrid to either store source or not store source.
> 2) An index-rebuild "Tool" (implemented as a REST end-point) that either remove source, or add source depending on how the system in configured to operate. The Tool must allow us to re-index without downtime. Possible approach:
>     For each application:
>     a) Tool creates a new index and adds that index to the application's read and write alias. 
>     b) Tool removes the old index from the application's write alias so it is no longer written to.
>     c) Tool deletes the mappings for each newly added index, then re-creates them with the new store-source settings.
>     d) Tool re-indexes the application's collections.
>     e) Once re-index is complete, Tool deletes the old index



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