[tor-bugs] #21366 [Metrics/Onionoo]: support whitespace in search term (as does onionoo)

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Feb 1 19:15:03 UTC 2017


#21366: support whitespace in search term (as does onionoo)
-----------------------------+------------------------------
 Reporter:  cypherpunks      |          Owner:  metrics-team
     Type:  defect           |         Status:  new
 Priority:  Medium           |      Milestone:
Component:  Metrics/Onionoo  |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:                   |        Sponsor:
-----------------------------+------------------------------

Comment (by karsten):

 Well, I wouldn't say that this is an Onionoo bug.  Onionoo interprets
 spaces in the search parameter as separators between search terms, and
 search terms can optionally be prefixed with a qualifier.

 In the first example above, `search=contact:Neel%20Chauhan` is interpreted
 as "contains Neel in the contact line and contains Chauhan in the usual
 fields we search for".

 You could approximate the second example by using
 `search=contact:Neel%20contact:Chauhan`, but that will also return all
 relays that have those two strings somewhere in the contact line, rather
 than just `Neel Chauhan`.

 What we could do is support quotes in qualified search terms to include
 spaces.  That would be `search=contact:"Neel%20Chauhan"`.  But how
 intuitive is that?  And would it produce new problems that I don't think
 of right now?  Or are there any alternatives that are more intuitive?
 Hmmmmm.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21366#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list