src/CwpSearchEngine.php
protected function getResult($keywords, $classes, $searchIndex, $limit = -1, $start = 0, $spellcheck = false)
    {
        // Prepare options
        $query = $this->getSearchQuery($keywords, $classes);
        $options = $this->getSearchOptions($spellcheck);

        // Get results
        $solrResult = $searchIndex->search(
            $query,
            $start,
            $limit,
            $options
        );

        return CwpSearchResult::create($keywords, $solrResult);
    }
protected function getResult($keywords, $classes, $searchIndex, $limit = -1, $start = 0, $spellcheck = false)
    {
        // Prepare options
        $query = $this->getSearchQuery($keywords, $classes);
        $options = $this->getSearchOptions($spellcheck);

        // Get results
        $solrResult = $searchIndex->search(
            $query,
            $start,
            $limit,
            $options
        );

        return CwpSearchResult::create($keywords, $solrResult);
    }
protected function getResult ( $ keywords , $ classes , $ searchIndex , $ limit = - 1 , $ start = 0 , $ spellcheck = false ) { // Prepare options $ query = $ this -> getSearchQuery ( $ keywords , $ classes ) ; $ options = $ this -> getSearchOptions ( $ spellcheck ) ; // Get results $ solrResult = $ searchIndex -> search ( $ query , $ start , $ limit , $ options ) ; return CwpSearchResult :: create ( $ keywords , $ solrResult ) ; }
Get results for a search term

@param string $keywords
@param array $classes
@param SolrIndex $searchIndex
@param int $limit Max number of results for this page
@param int $start Skip this number of records
@param bool $spellcheck True to enable spellcheck
@return CwpSearchResult
Get results for a search term