# Update cloudsearch domain for prod-etl-projects corpus

## Overview

This script is used to re-index prod-etl-projects by given project_ids and prod-etl-tracks corpus by unique_track_id.
This will simply update the track.last_updated and project.updated_date_utc with current time. 
So lambda-alooma-cloudsearch can trigger and sync the data to AWS Cloudsearch 

An older version of this script for products can found at https://github.com/theorchard/collab/tree/master/sshetty/cloudsearch

## Installation

```bash
python3.6 -m venv env
```

```bash
source env/bin/activate
```

```bash
pip install -r requirements.txt
```

```bash
cp .env.shadow .env
```

## Run

```bash
python process.py --project_ids=1,2,3
python process.py --track_ids=1,2,3 
```


**Note**
If `--project_ids` and  `--track_ids` provide then the script will give priority to projects reindex over tracks.
