public function isValidSolrPath($path)
    {
        $path = trim($path);

        if ((!empty($path)) && (preg_match('/^[^*?"<>|:#]*$/', $path))) {
            return true;
        }

        return false;
    }
public function isValidSolrPath($path)
    {
        $path = trim($path);

        if ((!empty($path)) && (preg_match('/^[^*?"<>|:#]*$/', $path))) {
            return true;
        }

        return false;
    }
public function isValidSolrPath ( $ path ) { $ path = trim ( $ path ) ; if ( ( ! empty ( $ path ) ) && ( preg_match ( '/^[^*?"<>|:#]*$/' , $ path ) ) ) { return true ; } return false ; }
Validate that a path is a valid Solr Path

@param string $path
@return bool
Validate that a path is a valid Solr Path