<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Harrissou,</p>
<p>It's the "display name" configured in layer properties ->
display. What's shown in the form view of the attribute table.</p>
<p>This way it's highly configurable, what's actually searched for
in all the layers. Especially with numbers it would often be
impossible to find something useful without somehow limiting the
attributes which are being searched.</p>
<p>Regards</p>
<p>Matthias<br>
</p>
<div class="moz-cite-prefix">On 11/15/18 6:03 PM, DelazJ wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAECJsSrgzDuerB6n3pMiDZ3kXjEoSQzbZuKrmHdx4iJUbOEvfw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hi devs,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I was about to write an issue report but given
that I get a kind of consistent result, I wonder if it's by
design or a bug. so better ask here before.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"> I'm exploring the locator feature that searches
in all layers , aka "af" and because it almost never returns
something usable to me (I often search text), i tried to
understand its logic and arrived to the following: It does not
search in ALL fields of all layers; it searches ONLY in the
field set as preview field for each layer.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">What is a preview field? It's that field in the
Display tab of the layer properties that you choose to show
map tips.</div>
<div dir="ltr">By default, map tips option use the first field
of the layer; actually looks like it uses the first field if
it's a numeric field (maybe integer?). Having a string field
as first in the layer does not populate the map tip option:
you get a [Please define preview text], also shown in the
locator bar. A bug I should report?</div>
<div><br>
</div>
<div>The limitation about the "af" feature not using all fields,
if ever that's true, is mentioned nowhere. Should be, given
that the "active layer" option does browse all the fields and
people would expect the same. And the relation between map tip
fields and the locator should be more clearly visible. I don't
know where but...<br>
</div>
<div><br>
</div>
<div>I could open issue reports for these but would like to know
if I'm not missing something.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Harrissou<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="moz-signature">
<title></title>
<div class="moz-signature"> <span style="text-align: left;
color: #000000; font-family: 'Verdana', sans-serif;
font-size: 10pt">Matthias Kuhn</span><br>
<a href="mailto:matthias@opengis.ch" target="_blank"> <span
style="text-align: left; color: #000000; font-family:
'Verdana', sans-serif; font-size: 8pt">matthias@opengis.ch</span>
</a><br>
<span style="text-align: left; color: #000000; font-family:
'Verdana', sans-serif; font-size: 8pt"><a
href="tel:+41764356763">+41 (0)76 435 67 63</a></span><br>
<div> <a href="http://www.opengis.ch"> <img
moz-do-not-send="false"
src="cid:part3.14779BDC.6A482CFE@opengis.ch"
alt="OPENGIS.ch Logo" width="200" height="80"></a> </div>
</div>
</div>
</div>
</body>
</html>