<div dir="ltr"><div><div>There is a filed in the resourcebase that is way better than the title for searching, it is a full text dump of the metadata and returns better results. We should be using that _without_ matching case instead of the restrictive title case that we have now.<br><br></div>Guido, I would be happy to review a pull request to change this behaviour by default in GeoNode.<br><br></div>-a<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 1:13 AM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, if you are referring to the thext search box on the left part of the search pages then you need to make sure that the api supports the filtering that you need, see<a href="https://github.com/GeoNode/geonode/blob/master/geonode/api/resourcebase_api.py#L44" target="_blank"> https://github.com/GeoNode/geonode/blob/master/geonode/api/resourcebase_api.py#L44</a>,<div><br></div><div>then add the html part, templates are here <a href="https://github.com/GeoNode/geonode/tree/master/geonode/templates/search" target="_blank">https://github.com/GeoNode/geonode/tree/master/geonode/templates/search</a>,</div><div><br></div><div>then add the logic for the search that is in this file, <a href="https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/search/search.js" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/search/search.js</a>. Here, depending on the type of filter that you need, the logic may vary but if you want to apply a filter similar to the text one then see this part of the file <a href="https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/search/search.js#L369" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/search/search.js#L369</a>. Autocomplete is used for the autosuggestion when typing, the search is done by appending "title__contains=keyword" to the $scope.query and then trigger the query_api function.</div><div><br></div><div>If you want to change the behavior of the top page search bar then is you have to modify the html in base.html <a href="https://github.com/GeoNode/geonode/blob/master/geonode/templates/base.html#L74" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/templates/base.html#L74</a>, but that is a pure html form.</div><div><br></div><div>Hope this helps</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-08-27 7:38 GMT+02:00 Häfliger Guido <span dir="ltr"><<a href="mailto:guido.haefliger@vogelwarte.ch" target="_blank">guido.haefliger@vogelwarte.ch</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">






<div>
<font face="Calibri" size="2"><span style="font-size:11pt">
<div>Hello</div>
<div> </div>
<div>We test geonode to manage our metadata (version 2.4b25). Is it possible to extend the text search to other attribute fields? For the moment the text search only use the layer name. If it is possible, where can I configure it?</div>
<div> </div>
<div>Regards</div>
<div>Guido</div>
<div> </div>
<div><font face="Arial" size="1"><span style="font-size:7.5pt">____________________________________________________<font face="Calibri"> </font></span></font></div>
<div><font size="1"><span style="font-size:7.5pt"><br>

<font face="Arial">Dipl. Ing. ETH Guido Häfliger<br>

</font><font face="Arial">E</font><font face="Arial">DV/GIS-Spezialist<br>

</font><font face="Arial">Tel. <a href="tel:%2B%2B41%2041%20462%2097%2060" value="+41414629760" target="_blank">++41 41 462 97 60</a><br>

</font><font color="blue" face="Arial"><u><a href="mailto:guido.haefliger@vogelwarte.ch" target="_blank">guido.haefliger@vogelwarte.ch</a><br>

</u></font><font color="blue" face="Arial"><u><a href="http://www.vogelwarte.ch" target="_blank">www.vogelwarte.ch</a><br>

<br>

</u></font><font face="Arial">Schweizerische Vogelwarte | Seerose 1 | CH-6204 Sempach | Schweiz</font></span></font></div>
<div><font face="Arial" size="1"><span style="font-size:7.5pt"> </span></font></div>
<div> </div>
<div> </div>
</span></font>
</div>

<br></div></div>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Simone </div>
</font></span></div></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>