Skip to content

Order by relevance #267

Open
Open
@cloudeweb

Description

@cloudeweb

Hello, I have for example this articles:

  1. xbox system update beta
  2. nintendo system update beta
  3. ps4 system update games
  4. ps5 system best games

if search for example: 'system best games' or 'best games system'

Is possible to order by relevance like this?

  1. ps5 system best games
  2. ps4 system update games
  3. xbox system update beta
  4. nintendo system update beta

this is my eloquent query:

$search = $request->input('s');
return Post::search(''.$search.'', ['name' => 10])
                   ->paginate(10);

thanks so much!

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