<commit_before># example of domain configuration for CloudSearch

DOMAIN="$1"

if [ "$DOMAIN" = "" ]; then
    echo "Need to specify a domain name as argument"
    exit -1;
fi

aws cloudsearch create-domain --domain-name $DOMAIN

aws cloudsearch define-index-field --domain-name $DOMAIN --name content --type text --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name description --type text --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name keywords --type text-array --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name title --type text --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name url --type literal --sort-enabled false --facet-enabled false --search-enabled false

<commit_msg>cloudsearch domain : fixed keywords definition<commit_after># example of domain configuration for CloudSearch

DOMAIN="$1"

if [ "$DOMAIN" = "" ]; then
    echo "Need to specify a domain name as argument"
    exit -1;
fi

aws cloudsearch create-domain --domain-name $DOMAIN

aws cloudsearch define-index-field --domain-name $DOMAIN --name content --type text --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name description --type text --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name keywords --type text-array
aws cloudsearch define-index-field --domain-name $DOMAIN --name title --type text --sort-enabled false
aws cloudsearch define-index-field --domain-name $DOMAIN --name url --type literal --sort-enabled false --facet-enabled false --search-enabled false


{'fraction_non_alphanumeric': 0.11729141475211609, 'fraction_numerical': 0.0024183796856106408, 'mean_word_length': 3.688385269121813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3576793', 'n_tokens_mistral': 446, 'n_tokens_neox': 444, 'n_words': 176}