Skip to content

Searching across Multiple words  #11

@webeddy

Description

@webeddy

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions