How to filter search results using scriptFilter and mvel?

For the following gist: https://gist.github.com/1337584

  1. Am I correct that if the mvel script returns true, then the doc
    will be filtered from search results?

  2. Do I have the correct syntax for referring to the param accessBit
    or do I need to wrap with something like param['accessBit']?

Thanks,
Shane

On Thu, Nov 3, 2011 at 9:51 PM, Shane Witbeck shane@digitalsanctum.comwrote:

For the following gist: gist:1337584 · GitHub

  1. Am I correct that if the mvel script returns true, then the doc
    will be filtered from search results?

No, its the other way around. If the script returns "true", it will be
included in the search results.

  1. Do I have the correct syntax for referring to the param accessBit
    or do I need to wrap with something like param['accessBit']?

No, just using accessBit is good enough.

Thanks,
Shane