<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Udo,<div><div>yes I understand you. My problem is that my magma collection wasn&#39;t empty when I added the index. So now I need send noteOldKesFor: to each and set again its name (each name: each name), I think.</div>
</div><div><br></div><div>CU,</div><div>Facu</div></span><br><div class="gmail_quote">On Mon, Nov 15, 2010 at 7:04 AM, Udo Schneider <span dir="ltr">&lt;<a href="mailto:udo.schneider@homeaddress.de">udo.schneider@homeaddress.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Facu,<br>
<br>
Can&#39;t check at the moment. But take a look at <a href="http://wiki.squeak.org/squeak/2639" target="_blank">http://wiki.squeak.org/squeak/2639</a><br>
<br>
IMHO using MagmaSession&gt;&gt;#noteOldKeysFor: (check &quot;Index updating&quot; on the webpage) and (if needed) MagmaCollection&gt;&gt;#slowlyDo:commitEvery: (check &quot;Batch operations&quot; on the webpage) should do the trick.<br>

<br>
CU,<br>
<br>
Udo<div class="im"><br>
<br>
<br>
On 14.11.10 20:54, Facundo Vozzi wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Udo,<br>
I works perfectly with new customers but It doesn&#39;t with old customers<br>
that I was added before add the MaSearchStringIndex on #name attribute.<br>
Can I rebuild index on MagmaCollection?<br>
<br>
Thanks you,<br>
Facu<br>
<br>
On Sun, Nov 14, 2010 at 5:49 AM, Udo Schneider<br></div><div class="im">
&lt;<a href="mailto:udo.schneider@homeaddress.de" target="_blank">udo.schneider@homeaddress.de</a> &lt;mailto:<a href="mailto:udo.schneider@homeaddress.de" target="_blank">udo.schneider@homeaddress.de</a>&gt;&gt; wrote:<br>

<br>
    Facu,<br>
<br>
<br>
        So, my question is: Can I use where: for this funcionality or I<br>
        need use<br>
        select:? If you think that where: is appropiate, Do I need<br>
        create a new<br>
        king of index to reach that?<br>
<br>
    I added the following method in MagmaCollectionReader which should<br>
    fullfill your needs:<br>
<br>
    read: attributeSymbol beginsWith: aKey<br>
            ^ self read: attributeSymbol from: aKey upTo: aKey<br>
    maAlphabeticalNext<br>
<br>
    This allows you to write your original select: based call as<br>
<br>
    self customers where: [:reader | reader read: #name beginsWith:<br>
    firstsLetterOfName asUppercase]<br>
<br>
<br>
    CU,<br>
<br>
    Udo<br>
<br>
    _______________________________________________<br>
    Magma mailing list<br>
    <a href="mailto:Magma@lists.squeakfoundation.org" target="_blank">Magma@lists.squeakfoundation.org</a><br></div>
    &lt;mailto:<a href="mailto:Magma@lists.squeakfoundation.org" target="_blank">Magma@lists.squeakfoundation.org</a>&gt;<div class="im"><br>
    <a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Magma mailing list<br>
<a href="mailto:Magma@lists.squeakfoundation.org" target="_blank">Magma@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
_______________________________________________<br>
Magma mailing list<br>
<a href="mailto:Magma@lists.squeakfoundation.org" target="_blank">Magma@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
</div></div></blockquote></div><br>