[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Review Request 128738: Quote all prefix search values, if operator is = or :.
From: James Smith <smithjd15 () gmail ! com>
Date: 2016-09-07 22:40:54
Message-ID: 20160907224054.5566.19029 () mimi ! kde ! org
[Download RAW message or body]
--===============4309797135792923703==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
> On Sept. 4, 2016, 9:25 a.m., Vishesh Handa wrote:
> > This breaks the default behavior of searching and makes it hard to reason what is \
> > going on.
> > Eg - `baloosearch 'tag:Death Fire'` and `baloosearch tag:Death Fire` now yield \
> > different results since "Fire" is considered part of the tag in the first query.
> > I would rather not ship this.
'tag:Death Fire' and tag:Death Fire are invalid (or poorly-written and poorly \
intended) resolves, tag:\"Death Fire\" is an equivalent for the first query. Or, for \
the second, tag="Death" OR tag="Fire" would return matches for both tags. The use of \
prefix and operators jargon is near-mandatory for good results, and conjunctory \
statements are sometimes required; similarly consistent parsing cultivates a much \
better understanding of how to obtain optimal search results.
The biggest annoyance that this patch fixes is the lack of results from searching for \
a tag with a space immediately following a successful search for a tag with no spaces \
and no escaped quotes. e.g.
tag="Water" or tag=Water : has matches
tag="Death Water" or tag=Death Water : no matches. Requirement to abandon existing \
"working" syntax, forced to write tag=/"Death Water/".
Noticeably this is not an intuitive behaviour.
- James
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128738/#review98859
-----------------------------------------------------------
On Aug. 24, 2016, 3:26 p.m., James Smith wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128738/
> -----------------------------------------------------------
>
> (Updated Aug. 24, 2016, 3:26 p.m.)
>
>
> Review request for Baloo and Vishesh Handa.
>
>
> Repository: baloo
>
>
> Description
> -------
>
> Add quotation marks surrounding the search term for all searches matching operator \
> = or :.
>
> Diffs
> -----
>
> src/tools/baloosearch/main.cpp 8fabdbb
>
> Diff: https://git.reviewboard.kde.org/r/128738/diff/
>
>
> Testing
> -------
>
> Compile, run.
>
>
> Thanks,
>
> James Smith
>
>
--===============4309797135792923703==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;"> \
<tr> <td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/128738/">https://git.reviewboard.kde.org/r/128738/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On September 4th, 2016, 9:25 a.m. UTC, <b>Vishesh \
Handa</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;"> <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">This breaks the default behavior of searching and \
makes it hard to reason what is going on.</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">Eg - <code \
style="text-rendering: inherit;color: #4444cc;padding: 0;white-space: normal;margin: \
0;line-height: inherit;">baloosearch 'tag:Death Fire'</code> and <code \
style="text-rendering: inherit;color: #4444cc;padding: 0;white-space: normal;margin: \
0;line-height: inherit;">baloosearch tag:Death Fire</code> now yield different \
results since "Fire" is considered part of the tag in the first query.</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">I would rather not ship this.</p></pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">'tag:Death Fire' and tag:Death Fire are invalid (or poorly-written and \
poorly intended) resolves, tag:\"Death Fire\" is an equivalent for the first query. \
Or, for the second, tag="Death" OR tag="Fire" would return matches for both tags. The \
use of prefix and operators jargon is near-mandatory for good results, and \
conjunctory statements are sometimes required; similarly consistent parsing \
cultivates a much better understanding of how to obtain optimal search results.</p> \
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">The biggest annoyance that this patch fixes is the \
lack of results from searching for a tag with a space immediately following a \
successful search for a tag with no spaces and no escaped quotes. e.g.</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">tag="Water" or tag=Water : has matches tag="Death Water" or tag=Death Water \
: no matches. Requirement to abandon existing "working" syntax, forced to write \
tag=/"Death Water/".</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">Noticeably this is not an intuitive \
behaviour.</p></pre> <br />
<p>- James</p>
<br />
<p>On August 24th, 2016, 3:26 p.m. UTC, James Smith wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tr>
<td>
<div>Review request for Baloo and Vishesh Handa.</div>
<div>By James Smith.</div>
<p style="color: grey;"><i>Updated Aug. 24, 2016, 3:26 p.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
baloo
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Add quotation marks surrounding the search term for \
all searches matching operator = or :.</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Compile, run.</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/tools/baloosearch/main.cpp <span style="color: grey">(8fabdbb)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/128738/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
--===============4309797135792923703==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic