Loading...
 

Tikiwiki-devel (mailman list mirror)


Search - Field Weight

posts: 7816 Israel

Hello,

Not sure on how it works and can't find solid information about it.

At https://doc.tiki.org/tiki-searchindex.php?filter~content=templates <https://doc.tiki.org/tiki-searchindex.php?filter~content=templates> it says:

Field Weights
title:2.5
allowed_groups:0.0001
categories:0.0001
deep_categories:0.0001

So results with the searched word in the title should be of more relevance than other results and therefor be display on the top of the list.

However, at https://doc.tiki.org/tiki-searchindex.php?filter~content=templates <https://doc.tiki.org/tiki-searchindex.php?filter~content=templates> the first result with the word Template appears is third.
Result one and two got a lot of time the word template in their content.

I tried to play with the "title" field weight but didn't get anywhere.
(rebuilding the index didn't improve)

How to make sure results with the searched term in the title appears before the others ?

Bernard

posts: 126226 United Kingdom


Good point Bernard, you're absolutely right. I wonder if it's an MySQL thing...

Looking at https://dev.tiki.org/tiki-searchindex.php?filter~content=templates (which is on Elastic Search) the results seem much better, so i guess the weighting isn't working properly on mysql - another one for the list i guess :-( but well spotted, thanks

jb




> On 23 Feb 2016, at 09:52, Bernard Sfez <bsfez@shocksite.com> wrote:
>
> Hello,
>
> Not sure on how it works and can't find solid information about it.
>
> At https://doc.tiki.org/tiki-searchindex.php?filter~content=templates <https://doc.tiki.org/tiki-searchindex.php?filter~content=templates> it says:
>
> Field Weights
> title:2.5
> allowed_groups:0.0001
> categories:0.0001
> deep_categories:0.0001
>
> So results with the searched word in the title should be of more relevance than other results and therefor be display on the top of the list.
>
> However, at https://doc.tiki.org/tiki-searchindex.php?filter~content=templates <https://doc.tiki.org/tiki-searchindex.php?filter~content=templates> the first result with the word Template appears is third.
> Result one and two got a lot of time the word template in their content.
>
> I tried to play with the "title" field weight but didn't get anywhere.
> (rebuilding the index didn't improve)
>
> How to make sure results with the searched term in the title appears before the others ?
>
> Bernard
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
> TikiWiki-devel mailing list
> TikiWiki-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.