[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs