Addshore added a project: Wikidata-Campsite.
Addshore added a comment.

  It sounds like the "right" thing to do for now would be to return everything 
here, starting with items, then properties, then lexemes (as a starting point).
  We could probably use our search code that powered wbsearchentities, and just 
loop through entity types in some order so that we prioritize items etc.
  
  In T275251#6858213 <https://phabricator.wikimedia.org/T275251#6858213>, 
@Jdlrobson wrote:
  
  > Code:
  > 
https://github.com/wikimedia/mediawiki/blob/master/includes/Rest/Handler/SearchHandler.php
  >
  > Looks like there are hooks for thumbnail and description.
  > A hook would likely be needed in 
https://github.com/wikimedia/mediawiki/blob/master/includes/Rest/Handler/SearchHandler.php#L102
  
  It looks like we would also need a hook to override the `title` itself?
  This would allow us to add both the label and description of items for 
example to the result.
  Once we figure this bit out I think this would be ready for us to work on as 
long as @Lydia_Pintscher agrees with just trying this as a first attempt.
  
  F34172458: image.png <https://phabricator.wikimedia.org/F34172458>
  
  I like the look of this bottom option and I wonder if there might also be a 
way to hook in and add more options / a different option here?
  This would allow us for example to more easily search for other types of 
entities for other usecases?

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

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

To: Addshore
Cc: LGoto, Yair_rand, MPhamWMF, ovasileva, Addshore, Lydia_Pintscher, Aklapper, 
Jdlrobson, Selby, caldera, maantietaja, Akuckartz, Demian, darthmon_wmde, 
WDoranWMF, holger.knust, EvanProdromou, DannyS712, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, pmiazga, LawExplorer, Winter, JJMC89, Iniquity, 
_jensen, rosalieper, Agabi10, Scott_WUaS, Pchelolo, Jonas, Volker_E, 
Niedzielski, Izno, abian, Wikidata-bugs, aude, GWicke, Dinoguy1000, Mbch331, 
Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to