public function index(FormData $formData, $properties)
    {
        $id = $this->persistenceManager->getIdentifierByObject($formData);
        $formValues = json_decode($formData->getFormValues(), true);
        $formValues['_date'] = $formData->getDate();
        $data = $this->parseData($formValues, $properties);
        $index = $this->getIndex();
        $type = $this->getType($index, $formData->getFormIdentifier(), $properties);
        $document = new Document($type, $data, $id);
        $document->store();
    }
public function index(FormData $formData, $properties)
    {
        $id = $this->persistenceManager->getIdentifierByObject($formData);
        $formValues = json_decode($formData->getFormValues(), true);
        $formValues['_date'] = $formData->getDate();
        $data = $this->parseData($formValues, $properties);
        $index = $this->getIndex();
        $type = $this->getType($index, $formData->getFormIdentifier(), $properties);
        $document = new Document($type, $data, $id);
        $document->store();
    }
public function index ( FormData $ formData , $ properties ) { $ id = $ this -> persistenceManager -> getIdentifierByObject ( $ formData ) ; $ formValues = json_decode ( $ formData -> getFormValues ( ) , true ) ; $ formValues [ '_date' ] = $ formData -> getDate ( ) ; $ data = $ this -> parseData ( $ formValues , $ properties ) ; $ index = $ this -> getIndex ( ) ; $ type = $ this -> getType ( $ index , $ formData -> getFormIdentifier ( ) , $ properties ) ; $ document = new Document ( $ type , $ data , $ id ) ; $ document -> store ( ) ; }
Index the submitted form data to elastic.

@param FormData $formData
@param array $properties
Index the submitted form data to elastic .