src/Managers/DocumentManager.php
/**
     * Create Elasticsearch document for item.
     *
     * @param mixed $item
     * @return array Elasticsearch response.
     */
Create Elasticsearch document for item.
@param mixed $item
@return array Elasticsearch response.
Create Elasticsearch document for item . @param mixed $item @return array Elasticsearch response .
public function create($item)
    {
        return $this->manager->index(
            $this->getIndexName($item),
            self::TYPE,
            $this->toDocument($item)
        );
    }
public function create ( $ item ) { return $ this -> manager -> index ( $ this -> getIndexName ( $ item ) , self :: TYPE , $ this -> toDocument ( $ item ) ) ; }
Create Elasticsearch document for item.
Create Elasticsearch document for item .