Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Prefer long-tail matches #11

Open
azeller opened this issue Oct 6, 2020 · 1 comment
Open

Enhancement: Prefer long-tail matches #11

azeller opened this issue Oct 6, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@azeller
Copy link

azeller commented Oct 6, 2020

From an SEO standpoint, preferring a longer string that matches the same text over a shorter string would make more sense.

Let's say we have brand pages, one of them being "BMW" and let's say we have model pages like an "BMW M4 Competition"

"BMW M4 Competition" should definitely match the page for the BMW M4 Competition car and not the page for the BMW brand. Right now, there is no rank for a certain keyphrase defined so Crosslinks will grab whatever it can and match accordingly. It would be great to prefer longer phrases over short ones.

This might be as simple as sorting the possible matches descending by string-length first and then start link replacement.

I'd be glad to hear some feedback, because I will probably not be the first person to ask for this. In the meantime we can have a look at the code and provide a PR for this.

@Jako
Copy link
Owner

Jako commented Oct 12, 2020

Maybe this could be handled by replacement rules with an extra sortindex or by reverse ordering the replacements. That way the long words are handled first.

@Jako Jako added the enhancement New feature or request label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants