Hi,<div>I&#39;ve this code:</div><div><br></div><div><ul><li>self customers select: [:aCustomer | aCustomer name asUppercase beginsWith: firstsLetterOfName asUppercase]</li></ul></div><div><br></div><div>It works ok and with good perfomance but &quot;customers&quot; is a magma collection so I would like use where: because the collection has a index on #name attribute.</div>
<div><br></div><div><ul><li>self customers where: [:each | aCustomer name = firstsLetterOfName asUppercase]</li></ul></div><div><br></div><div>It works but I had two problems, the first one is that the meaningfulCharacters of MaSearchStringIndex is 5 and then it works if I write exactly the 5 firsts letter of the name. The second problem is that I can&#39;t send asUppercase beacuse name is a MaClause.</div>
<div><br></div><div>So, my question is: Can I use where: for this funcionality or I need use select:? If you think that where: is appropiate, Do I need create a new king of index to reach that?</div><div><br></div><div>Thank you,</div>
<div>Facu</div><div><br></div><div>p.s.: I&#39;m using the first code in the method of customersOfNameBeginsWith: selector and i used it on a autocompletation jquery input control.</div>