<br><br><div class="gmail_quote">2008/5/15 Richard Jones &lt;<a href="mailto:richardjones@optushome.com.au">richardjones@optushome.com.au</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, 15 May 2008, Tarek Ziade wrote:<br>
&gt; I think it wouldn&#39;t cost too much here to change the webui interface, to<br>
&gt; use store.py features.<br>
<br>
</div>The current search implementation is a trade-off between the complexity you<br>
would like to have and useful results for arbitrary, inelegant term lists.</blockquote><div><br>ok, yes my use case is being able to look for several words with AND and/or OR,<br>if searchable_text is a field with all text the package has:<br>
<br>search(&#39;nose AND plugin&#39;)<br><br>--- which in my mind would result in something like:<br><br>select distinct package_name <br>from package<br>where searchable_text like &#39;%nose%&#39; AND name like &#39;%plugin%&#39;<br>
<br>But i guess it can be rather complex, and Noah&#39;s trick fit my needs :D<br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Your pseudo-code omits an important feature - the scoring of the result based<br>
on the type of match.<br>
</blockquote><div><br>Ok. <br><br>semi-related: looking at the code, I think query_packages can be called just once<br>per term, then the score calculated for each column on the results. That would<br>lower the number of queries (1/3).<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Perhaps the scoring could be altered such that hits on more than one term in<br>
the same field result in a higher score?</blockquote><div><br>if it is doable, that would be nice,<br><br>Maybe we could have an advanced search screen that would take care of asking<br>the user which field the term refers too (like roundup) ?<br>
<br>Tarek<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
<br>
 &nbsp; &nbsp;Richard<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Catalog-SIG mailing list<br>
<a href="mailto:Catalog-SIG@python.org">Catalog-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/catalog-sig" target="_blank">http://mail.python.org/mailman/listinfo/catalog-sig</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tarek Ziadé - Directeur Technique<br>INGENIWEB (TM) - SAS 50000 Euros - RC B 438 725 632<br>Bureaux de la Colline - 1 rue Royale - Bâtiment D - 9ème étage<br>
92210 Saint Cloud - France<br>Phone : 01.78.15.24.00 / Fax : 01 46 02 44 04<br><a href="http://www.ingeniweb.com">http://www.ingeniweb.com</a> - une société du groupe Alter Way