Michael added a comment.

  In T327507#8649433 <https://phabricator.wikimedia.org/T327507#8649433>, 
@Lydia_Pintscher wrote:
  
  > Yeah when I discussed this with Stas from the Search team ages ago he 
basically said we can forget any meaningful ranking across entity types. [...]
  
  Well, we //do// have meaningful ranking across Properties and Items on 
Special:Search, as shown above 
<https://phabricator.wikimedia.org/T327507#8648868>. However, I agree that this 
is probably tricky to achieve, and, currently, it breaks down when adding the 
Lexeme namespace.
  
  I spontaneously joined the Search Team Office Hour today and asked about that 
and got a few pointers. (Thanks!)
  
  - one can add `&cirrusExplain=pretty&cirrusDumpResult` to the search url, and 
it shows explanatory output
    - (`verbose` and `json` are other valid values for `cirrusExplain`)
    - one can see there is pretty different output based on whether Lexeme 
namespace is included or not:
      - explained search for "color" in Items and Properties 
<https://www.wikidata.org/w/index.php?search=color&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1&ns120=1&cirrusExplain=pretty&cirrusDumpResult>
      - explained search for "color" in Items, Properties, and Lexemes 
<https://www.wikidata.org/w/index.php?search=color&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1&ns120=1&ns146=1&cirrusExplain=pretty&cirrusDumpResult>
    - notice that the scores when searching for Lexemes are much simpler, 
probably that comes from Lexeme using a different SearchProfile or something 
than core Wikibase
      - probably that would be in Lexeme's handler for the 
onCirrusSearchProfileService hook 
<https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikibaseLexemeCirrusSearch/+/44dcd65267c0362538da7a30e8961b550ebf025f/src/Hooks.php#38>
  - one way to dig into this further and make this better comparable would be 
to look at the explained search results for a specific item under different 
conditions:
    - explained search for "Game Boy Color" in Items and Properties 
<https://www.wikidata.org/w/index.php?search=Game+Boy+Color&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1&ns120=1&cirrusExplain=pretty&cirrusDumpResult>
    - explained search for "Game Boy Color" in Items, Properties, and Lexemes 
<https://www.wikidata.org/w/index.php?search=Game+Boy+Color&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1&ns120=1&ns146=1&cirrusExplain=pretty&cirrusDumpResult>
  
  But, as said above, getting this right across a diverse domain of namespaces 
is probably a pretty intricate challenge and maybe not the best thing to do 
right now.

TASK DETAIL
  https://phabricator.wikimedia.org/T327507

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Michael
Cc: Lydia_Pintscher, ItamarWMDE, Michael, karapayneWMDE, Aklapper, 
Arian_Bozorg, Astuthiodit_1, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to