dcausse added a comment.

  I believe that because the file name has many words the score on the 
tokenized text fields is very high (since we sum all token scores), the score 
on the exact match having only one word and despite having a high weight it's 
not enough to compete with the loss of its text matches discarded because of 
the negation.
  
  In general I suggest using autocomplete APIs (opensearch/prefixsearch) for 
type-a-head searches, this is faster and the list of results does no change 
unexpectedly as you type. What's done in the mobile app is a two steps search: 
first send a prefixsearch then a fulltext search if not results are found.
  
  When using the fulltext search (list=search) if the user is not aware that 
it's using the fulltext engine the UI should escape the search syntax otherwise 
some chars may trigger a special syntax (negation in this case).
  
  The proper way to fix this issue is imo to:
  
  - use a completion API + fulltext search fallback
  - escape the fulltext search syntax from the UI: AND, OR, NOT, ||, &&, -, !, 
", :, \?, *

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

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

To: Silvan_WMDE, dcausse
Cc: hoo, EBernhardson, TJones, dcausse, Ladsgroup, Silvan_WMDE, Addshore, 
Bencemac, Aklapper, Ayack, Liuxinyu970226, Smalyshev, Lydia_Pintscher, 
Lea_Lacroix_WMDE, Beast1978, Un1tY, Hook696, Daryl-TTMG, RomaAmorRoma, 
0010318400, E.S.A-Sheild, Iflorez, darthmon_wmde, alaa_wmde, Meekrab2012, 
joker88john, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Af420, 
Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, 
Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, Maathavan, 
_jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to