Skip to content

Searchable and multiple keywords positioning #272

Open
@GrzegorzP

Description

@GrzegorzP

Hi,

when I search by multiple keywords f.ex.:

Car::search('toyota hybrid', ['name' => 10], true)->get();

the results contanins occurance of "*toyota*" or "*hybrid*" with the same weight so the list looks like this:

1. Toyota Camry
2. Toyota Prius Hybrid

Shouldn''t result be in the order:

1. Toyota Prius Hybrid
2. Toyota Camry

because name Toyota Prius Hybrid have 2 hits while Toyota Camry is only 1 hit? Or is that possible to configure that all keywords should be hit?

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