Svizel_pritula created this task.
Svizel_pritula added a project: Wikidata-Query-Service.
Restricted Application added a subscriber: Aklapper.
Restricted Application added a project: Wikidata.

TASK DESCRIPTION
  **Steps to Reproduce**:
  
  1. Head to https://query.wikidata.org/ and open the "Filter labels using 
EntitySearch from mwapi service to provide Full Text Search 
<https://query.wikidata.org/#%23Filter%20labels%20using%20EntitySearch%20from%20mwapi%20service%20to%20provide%20Full%20Text%20Search%0A%23Combine%20the%20Wikidata%20Query%20Service%20and%20the%20Mediawiki%20API%0A%23https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FWikidata_Query_Service%2FUser_Manual%2FMWAPI%0A%23%28which%20is%20backed%20by%20Elasticsearch%29%20to%20perform%20very%20fast%20searching%20of%20entities%20by%20their%20label.%0A%23%0A%23This%20query%20will%20first%20contact%20EntitySearch%20%28an%20alias%20to%20wbsearchentities%29%0A%23which%20will%20pass%20the%20items%20with%20a%20label%20of%20%22soriano%22%20it%20found%20to%20the%20triple%20store%0A%23which%20in%20turn%20can%20now%20query%20the%20graph%20in%20a%20timely%20manner%20and%20filter%20those%20entities%20that%20are%20not%20humans.%0A%23This%20solution%20only%20works%20if%20the%20number%20of%20items%20returned%20by%20wbsearchentities%20remains%20reasonable.%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aendpoint%20%22www.wikidata.org%22%3B%0A%20%20%20%20%20%20%20%20wikibase%3Aapi%20%22EntitySearch%22%3B%0A%20%20%20%20%20%20%20%20mwapi%3Asearch%20%22soriano%22%3B%20%23%20Search%20for%20things%20named%20%22soriano%22%0A%20%20%20%20%20%20%20%20mwapi%3Alanguage%20%22en%22.%0A%20%20%20%20%20%20%3Fitem%20wikibase%3AapiOutputItem%20mwapi%3Aitem.%0A%20%20%7D%0A%20%20MINUS%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP31%20wd%3AQ5%20.%20%23%20but%20MINUS%20or%20negate%20any%20of%20those%20things%20that%20are%20instances%20of%20human%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7Bbd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%7D%0A%7D%0ALIMIT%20100>"
 example.
  2. Use the "Code" button to generate an URL for this query. Add 
`&format=json` at the end to allow viewing the result in a web browser. You 
should arrive at this URL 
<https://query.wikidata.org/sparql?query=%23Filter%20labels%20using%20EntitySearch%20from%20mwapi%20service%20to%20provide%20Full%20Text%20Search%0A%23Combine%20the%20Wikidata%20Query%20Service%20and%20the%20Mediawiki%20API%0A%23https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FWikidata_Query_Service%2FUser_Manual%2FMWAPI%0A%23(which%20is%20backed%20by%20Elasticsearch)%20to%20perform%20very%20fast%20searching%20of%20entities%20by%20their%20label.%0A%23%0A%23This%20query%20will%20first%20contact%20EntitySearch%20(an%20alias%20to%20wbsearchentities)%0A%23which%20will%20pass%20the%20items%20with%20a%20label%20of%20%22soriano%22%20it%20found%20to%20the%20triple%20store%0A%23which%20in%20turn%20can%20now%20query%20the%20graph%20in%20a%20timely%20manner%20and%20filter%20those%20entities%20that%20are%20not%20humans.%0A%23This%20solution%20only%20works%20if%20the%20number%20of%20items%20returned%20by%20wbsearchentities%20remains%20reasonable.%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aendpoint%20%22www.wikidata.org%22%3B%0A%20%20%20%20%20%20%20%20wikibase%3Aapi%20%22EntitySearch%22%3B%0A%20%20%20%20%20%20%20%20mwapi%3Asearch%20%22soriano%22%3B%20%23%20Search%20for%20things%20named%20%22soriano%22%0A%20%20%20%20%20%20%20%20mwapi%3Alanguage%20%22en%22.%0A%20%20%20%20%20%20%3Fitem%20wikibase%3AapiOutputItem%20mwapi%3Aitem.%0A%20%20%7D%0A%20%20MINUS%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP31%20wd%3AQ5%20.%20%23%20but%20MINUS%20or%20negate%20any%20of%20those%20things%20that%20are%20instances%20of%20human%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7Bbd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%7D%0A%7D%0ALIMIT%20100&format=json>.
  3. Spam CTRL + F5 to force refresh the page a bunch of times (usually at 
least 10) and take note of the results.
  
  **Actual Results**:
  
  Most of the time, the results will be empty. Sometimes, however, the correct 
results are returned.
  
  **Expected Results**:
  
  The results are allways correctly populated.

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

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

To: Svizel_pritula
Cc: Svizel_pritula, Aklapper, CBogen, Akuckartz, darthmon_wmde, Nandana, 
Namenlos314, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, 
EBjune, merbst, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to