2007/1/29, Jean-Francois Dockes &lt;<a href="mailto:jean-francois.dockes@wanadoo.fr">jean-francois.dockes@wanadoo.fr</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mikkel Kamstrup Erlandsen writes:<br> &gt; Hi All,<br> &gt;<br> &gt; I put together a first take on formalizing an end user search language.<br> &gt;<br> &gt; <a href="http://wiki.freedesktop.org/wiki/WasabiUserSearchLanguage">
http://wiki.freedesktop.org/wiki/WasabiUserSearchLanguage</a><br><br> - Which of OR and AND has priority ? (does (A AND B OR C) mean<br>&nbsp;&nbsp; ((A AND B) OR C) or (A AND (B OR C)) ?</blockquote><div><br>I guess it is standard that AND takes precedence over OR, but maybe it makes sense to reverse that in our case. Think of the case
<br><br>type:audio hendrix OR beatles<br></div><br>In this case I would assume the user wants &quot;audio files matching hendrix or beatles&quot;, and not &quot;audio files matching hendrix, or anything that matches beatles&quot;... I think it is non-standard however...
<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> - What should happen when an entry does not make sense? For example you<br>&nbsp;&nbsp; say that &lt;= is &quot;undefined but allowed&quot; for strings ? So what should the
<br>&nbsp;&nbsp; implementation do ? Take this as an equivalent for &#39;:&#39;. Or ignore the<br>&nbsp;&nbsp; entry ? Or what ?</blockquote><div><br>Anything conforming to the spec should parse as a rule of thumb. What exact action to take is up to the implementation. You suggest replacing &quot;&lt;=&quot; with &quot;:&quot;, and that is probably a good idea.
<br><br>Some search engines might be able to handle &quot;&gt;=&quot; as &quot;the metadata property value is *contained* in the value string&quot;. I don&#39;t have a use case for this though.<br><br>Maybe it is a bad idea to have loose ends like this.
<br></div><br></div>Cheers,<br>Mikkel<br>