Page MenuHomePhabricator

case-sensitive equivalent of haswbstatement
Open, LowPublic

Description

Currently haswbstatement is case-insensitive. We may have a keyword for case-sensitive value query.

Event Timeline

See: T206613 where this was originally implemented.

MPhamWMF subscribed.

Closing out low/est priority tasks over 6 months old with no activity within last 6 months in order to clean out the backlog of tickets we will not be addressing in the near term. Please feel free to reopen if you think a ticket is important, but bare in mind that given current priorities and resourcing, it is unlikely for the Search team to pick up these tasks for the indefinite future. We hope that the requested changes have either been addressed by or made irrelevant by work the team has done or is doing -- e.g. upgrading Elasticsearch to a newer version will solve various ES-related problems -- or will be subsumed by future work in a more generalized way.

RhinosF1 removed a project: Discovery-Search.
RhinosF1 subscribed.

Re-opening tasks and removing from team workboard per IRC feedback given yesterday and discussion with MPham.

Some identifiers (such as P356) are case-insensitive, but others (such as P3083) are case-sensitive. We have no control over it, since those are identifiers in external sources. As a result, when I'm searching for haswbstatement:"P3083=* b Cen" I'm getting:

  1. https://www.wikidata.org/wiki/Q2072696#P3083 (* b Cen)
  2. https://www.wikidata.org/wiki/Q4836952#P3083 (* B Cen)

and there is no way I can limit my search to the first result only.
Either case-sensitivity parameter in search or corresponding property text in results (so I can filter second entity by myself) would work for me.

Some identifiers (such as P356) are case-insensitive, but others (such as P3083) are case-sensitive. We have no control over it, since those are identifiers in external sources. As a result, when I'm searching for haswbstatement:"P3083=* b Cen" I'm getting:

  1. https://www.wikidata.org/wiki/Q2072696#P3083 (* b Cen)
  2. https://www.wikidata.org/wiki/Q4836952#P3083 (* B Cen)

and there is no way I can limit my search to the first result only.
Either case-sensitivity parameter in search or corresponding property text in results (so I can filter second entity by myself) would work for me.

Can you make a separate API request for the corresponding property text based off the q number you receive?

Can you make a separate API request for the corresponding property text based off the q number you receive?

Yes, I can. But it will add an unwanted layer of complexity in my code as well as impose additional burden on wikidata servers via additional wbgetentities request.