OR search operator
Submitted by wogone on Tue, 05/31/2011 - 23:13
Description:
We can use - to exclude a term or "quotes" to match a phrase, it would be nice to be able to search for term1 || term2. For example: flac || ape to get more lossless results.
Status:
Backward incompatible
(8 votes)
- Log in to post comments
Comments
It won't be possible to do
It won't be possible to do this in a way that won't interfere with the way the current client processes searches unfortunately.
Other than the trivial "make
Other than the trivial "make two separate searches and merge the results" approach, it might be a good time to add support for new search query messages. Afterall, everyone will be moving to SoulseekQT sooner rather than later...
Seems like this is a basic
Seems like this is a basic boolean operator that somehow should be implemented...
couldn't it be implemented by
couldn't it be implemented by transmitting the operators in a way that's unlikely to be matched by an old client like "(term1||term2) term3 OR term4" => "_Qt_BEG_Qt_ term1 _Qt_OR_Qt_ term2 _Qt_END_Qt_ term3 _Qt_OR_Qt_ term4"