Hi Udo, as a Magma user that would be a good exercise for you to write that method #read:includesAnyOf:. :)
The best easist way I can help is to just show you some code which does something very similar - it assembles the Readers query Clause-tree using regular Smalltalk code.
You won't be able to load the attached changeset, just look at the four methods which are used to search for Transactions in a financial application using a keyword search. Start in #transactionsMatching:orderBy:.
HTH, Chris
On Mon, Aug 15, 2011 at 4:58 AM, Udo Schneider udo.schneider@homeaddress.de wrote:
All,
I'm currently searching for the long form of keyword queries. A short form of
aMagmaCollection where: [ :reader | reader keywords includesAnyOf: #('test') ].
works fine. This relies on a #doesNotUndestand: call because of #keywords. Thus I'm searching for a long form for it. E.g. something like
aMagmaCollection where: [ :reader | reader read: #keywords includesAnyOf: #('test') ].
Any hints?
Best Regards,
Udo
Magma mailing list Magma@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/magma