-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Prioritizing columns #38
Comments
In order to achieve this you could do something called query expansion. Each query that comes in, class QueryExpansion
{
public static $query = [
'house' => 'house hugh',
'friends' => 'friends aniston',
'game of' => 'game of thrones',
'game' => 'game of thrones',
'breaking' => 'breaking bad',
'walker' => 'walker texas',
'nanny' => 'nanny fran',
'how' => 'how i',
'the big bang' => 'the big bang theory',
'the big' => 'the big bang theory',
'malcolm' => 'malcolm in the middle',
'two and a half' => 'two and a half men',
'two and a' => 'two and a half men',
'two and' => 'two and a half men',
];
public static function expand($query)
{
$query = trim($query);
if (isset(self::$query[$query])) {
return self::$query[$query];
}
return $query;
}
} |
In the next versions of the package we plan to add field weighting |
Thanks for a quick reply! Glad to hear that field weighting is planned. 👍 Till then I'll just implement some workaround. Thanks. |
@nticaric Sorry to resurrect an old thread, but are there still plans to add field weighting? |
Yes, there are plans, however this is a side project so we're only working on it in our spare time. |
still busy i guess? |
any news about field weighting? I would love to see this feature also |
I am evaluating this search engine for a open science project... is there any estimated time for field weighting? |
This is an old issue but I don't think it should be closed, has this ever been implemented? |
@nticaric no impatience on my side (I am doing it manually for now) but do you have a release date for field weights? I think you mentioned it 8 years ago, is it still a planned feature? Would be happy to know. Thank you for this great project in any case!! |
I'm having some issues with the ranking. Is there any way to tell the driver to prioritize results that contain a match in the title rather than in the body? Right now it seems both columns have equal weight and the items I'm looking for almost never show at the top.
Thanks!
The text was updated successfully, but these errors were encountered: