sngrl / sphinxsearch

Sphinx Search for Laravel 5
MIT License
124 stars 89 forks source link

Searching across Multiple words #11

Open webeddy opened 8 years ago

webeddy commented 8 years ago

When trying to do a search for BMW Motorrad or partials of it.

searching for:

BMW is ok BMW M or any characters after return no results BMW Motorrad returns the company


public static function getQSAdvertiser($keyword){
        $sphinx = new SphinxSearch();
        $results = $sphinx
            ->search($keyword, 'companyqs')
            ->limit(10000)
            ->setMatchMode(\Sphinx\SphinxClient::SPH_MATCH_EXTENDED2)
            ->setRankingMode(\Sphinx\SphinxClient::SPH_RANK_MATCHANY)
            ->query();

        return $results;
    }
evgeny89 commented 2 years ago

This issue is part of a word in the search bar....