<div><span class="gmail_quote">On 3/1/07, <b class="gmail_sendername">Chris Muller</b> &lt;<a href="mailto:chris@funkyobjects.org">chris@funkyobjects.org</a>&gt; wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Brent!<br><br>I think you&#39;ve cleverly solved your own question..&nbsp;&nbsp;By indexing the reversed value, its no different than a keyword index where you can already query on the presence of multiple keywords, as in:
</blockquote>
<div>...</div>
<div><br>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You don&#39;t even need a separate &quot;reversed&quot; index, just add two entries (the forward and reversed) for each object added to the collection.
</blockquote>
<div>&nbsp;</div>
<div>Actually, wouldn&#39;t this give you wrong results?&nbsp; That is, if in the normal collection you had &quot;foobar&quot; and &quot;rabbit&quot; and searched for &#39;%bar&#39;, I think you would get back both &quot;foobar&quot; and &quot;rabbit&quot; (since it would match on raboof and rabbit, right?).
</div>
<div>&nbsp;</div>
<div>So, for safety, I would still suggest having 2 collections - or maybe tagging the collection with a notice if it is a reversed value or not.</div>
<div>&nbsp;</div>
<div>-ChrisC<br>&nbsp;</div>