Long form of keyword queries

Udo Schneider udo.schneider at homeaddress.de
Tue Aug 16 06:54:54 UTC 2011


Hi Chris,

 > Hi Udo, as a Magma user that would be a good exercise for you to write
 > that method #read:includesAnyOf:.  :)
Will do - I was just thinking that I may have missed it's existence.

 > 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.
Thanks a lot. Will take a look at it.

Thanks for your help.

Best Regards,

Udo


On 8/16/11 2:56 AM, Chris Muller wrote:
> 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 at 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 at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/magma
>>
>>
>>
>> _______________________________________________
>> Magma mailing list
>> Magma at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/magma




More information about the Magma mailing list