<commit_before><?php

namespace AppBundle\Controller;

use AppBundle\Facade\ProductFacade;
use AppBundle\Repository\ProductParameterRepository;
use AppBundle\Repository\ProductCategoryRepository;
use Symfony\Component\HttpFoundation\JsonResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;


/**
 * @author <NAME> <<EMAIL>>
 * @Route(service="app.controller.product_export_controller")
 */
class ProductExportController
{
	const ES_INDEX_URL = 'http://sandbox-cluster-2194566853.eu-west-1.bonsaisearch.net/codecampfilter/';
	const ES_USERNAME = 'h80n7saww1';
	const ES_PASSWORD = '<PASSWORD>';
	const ES_MAPPING = ' {
		 "mappings" : {
			 "product" : {
				"properties": {
				   "id": {
					  "type": "long"
				   },
				   "title": {
					  "type": "string"
				   },
				   "description": {
					  "type": "string"
				   },
				   "slug": {
					  "type": "string"
				   },
				   "image": {
					  "type": "string"
				   },
				   "price": {
					  "type": "long"
				   },
				   "rank": {
					  "type": "long"
				   },
				   "parameters": {
					 "type": "nested",
					  "properties": {
						 "id": {
							"type": "long"
						 },
						 "name": {
							"type": "string"
						 },
						 "dataType": {
							"type": "string"
						 },
						 "filterType": {
							"type": "string"
						 },
						 "priority": {
							"type": "long"
						 },
						 "value": {
							"properties": {
							   "id": {
								  "type": "long"
							   },
							   "valueString": {
								  "type": "string"
							   },
							   "valueFloat": {
								  "type": "long"
							   },
							   "valueBoolean": {
								  "type": "boolean"
							   }
							}
						 }
					  }
				   },
				   "categories": {
					  "type": "nested",
					  "properties": {
						 "id": {
							"type": "long"
						 },
						 "title": {
							"type": "string"
						 },
						 "slug": {
							"type": "string"<commit_msg>product-export: edit mapping for product (valueString and valueFloat fields)<commit_after><?php

namespace AppBundle\Controller;

use AppBundle\Facade\ProductFacade;
use AppBundle\Repository\ProductParameterRepository;
use AppBundle\Repository\ProductCategoryRepository;
use Symfony\Component\HttpFoundation\JsonResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;


/**
 * @author <NAME> <<EMAIL>>
 * @Route(service="app.controller.product_export_controller")
 */
class ProductExportController
{
	const ES_INDEX_URL = 'http://sandbox-cluster-2194566853.eu-west-1.bonsaisearch.net/codecampfilter/';
	const ES_USERNAME = 'h80n7saww1';
	const ES_PASSWORD = '<PASSWORD>';
	const ES_MAPPING = ' {
		 "mappings" : {
			 "product" : {
				"properties": {
				   "id": {
					  "type": "long"
				   },
				   "title": {
					  "type": "string"
				   },
				   "description": {
					  "type": "string"
				   },
				   "slug": {
					  "type": "string"
				   },
				   "image": {
					  "type": "string"
				   },
				   "price": {
					  "type": "long"
				   },
				   "rank": {
					  "type": "long"
				   },
				   "parameters": {
					 "type": "nested",
					  "properties": {
						 "id": {
							"type": "long"
						 },
						 "name": {
							"type": "string"
						 },
						 "dataType": {
							"type": "string"
						 },
						 "filterType": {
							"type": "string"
						 },
						 "priority": {
							"type": "long"
						 },
						 "value": {
							"properties": {
							   "id": {
								  "type": "long"
							   },
							   "valueString": {
								  "type": "string",
								  "index": "not_analyzed"
							   },
							   "valueFloat": {
								  "type": "double"
							   },
							   "valueBoolean": {
								  "type": "boolean"
							   }
							}
						 }
					  }
				   },
				   "categories": {
					  "type": "nested",
					  "properties": {
						 "id": {
							"type": "long"
						 },
						 "title": {
							"type": "string"
						 },
						 "slug": {
							"type": "string"
{'fraction_non_alphanumeric': 0.17152917505030182, 'fraction_numerical': 0.007545271629778672, 'mean_word_length': 1.7054421768707484, 'pattern_counts': {'":': 95, '<': 13, '<?xml version=': 0, '>': 11, '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': '821858', 'n_tokens_mistral': 2009, 'n_tokens_neox': 1209, 'n_words': 209}