Skip to content

[5.x]: Are search results rankings following the expected behaviour? #17739

@pl-mnm

Description

@pl-mnm

What happened?

Description

My understanding is that in search results, a keyword appearing in a title should rank higher than other results. I'm noticing that when the keyword is in a related element, then the keyword in the relation ends up giving more weight to the entry than the one in the title. Here's a basic test I ran on a blank install:

Image

The results seem to match my expectations when the search keyword is partially complete (eg. Archtec):

Image

Steps to reproduce

  1. Install Craft
  2. Create entries with keyword in title, and/or body, and/or categories

Expected behavior

The entries with the keyword in the title should rank higher than entries with keywork in relations.

Actual behavior

Entries with keywork in relations rank higher than entries with keyword in title when a keyword is complete.

Craft CMS version

5.7.1

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions