prevent the server from returning very large sets of objects.</p>
<p>An example of a Lucene XML query which returns objects containing the word 'apples' or 'oranges':</p>
<pre><code>&lt;BooleanQuery fieldname=&quot;content&quot;&gt;
&lt;Clause occurs=&quot;should&quot;&gt;
    &lt;TermQuery&gt;apples&lt;/TermQuery&gt;
&lt;/Clause&gt;
    &lt;Clause occurs=&quot;should&quot;&gt;
    &lt;TermQuery&gt;oranges&lt;/TermQuery&gt;
&lt;/Clause&gt;
&lt;/BooleanQuery&gt;
</code></pre>
<h3 id="setmeta"><a href="#TOC">