lib/Elastica/Search.php
public function getPath()
    {
        if (isset($this->_options[self::OPTION_SCROLL_ID])) {
            return '_search/scroll';
        }

        $indices = $this->getIndices();

        $path = '';
        $types = $this->getTypes();

        if (empty($indices)) {
            if (!empty($types)) {
                $path .= '_all';
            }
        } else {
            $path .= \implode(',', $indices);
        }

        if (!empty($types)) {
            $path .= '/'.\implode(',', $types);
        }

        // Add full path based on indices and types -> could be all
        return $path.'/_search';
    }
public function getPath()
    {
        if (isset($this->_options[self::OPTION_SCROLL_ID])) {
            return '_search/scroll';
        }

        $indices = $this->getIndices();

        $path = '';
        $types = $this->getTypes();

        if (empty($indices)) {
            if (!empty($types)) {
                $path .= '_all';
            }
        } else {
            $path .= \implode(',', $indices);
        }

        if (!empty($types)) {
            $path .= '/'.\implode(',', $types);
        }

        // Add full path based on indices and types -> could be all
        return $path.'/_search';
    }
public function getPath ( ) { if ( isset ( $ this -> _options [ self :: OPTION_SCROLL_ID ] ) ) { return '_search/scroll' ; } $ indices = $ this -> getIndices ( ) ; $ path = '' ; $ types = $ this -> getTypes ( ) ; if ( empty ( $ indices ) ) { if ( ! empty ( $ types ) ) { $ path .= '_all' ; } } else { $ path .= \ implode ( ',' , $ indices ) ; } if ( ! empty ( $ types ) ) { $ path .= '/' . \ implode ( ',' , $ types ) ; } // Add full path based on indices and types -> could be all return $ path . '/_search' ; }
Combines indices and types to the search request path.

@return string Search path
Combines indices and types to the search request path .