Filtering question/advice

2009-09-04 Thread Amin Mohammed-Coleman
Hi, I am looking at applying a security filter for our lucene document and I was wondering if I could get feedback on whether the solution I have come up with. Firstly I will explain the scenario and followed by the proposed solution: We have a concept of a Layer which is a project whereby a br

Re: Filtering question/advice

2009-09-04 Thread Amin Mohammed-Coleman
Hi I include a testcase to show what I am trying to do. Testcase number 3 fails. Thanks Amin On Fri, Sep 4, 2009 at 10:17 AM, Amin Mohammed-Coleman wrote: > Hi, > > I am looking at applying a security filter for our lucene document and I > was wondering if I could get feedback on whether the so

Re: Filtering question/advice

2009-09-04 Thread Amin Mohammed-Coleman
Hi, Apologies for resending this email but just wondering if I could get some input on the below. I am in the final stages of getting a proof of concept together and this is the final piece of the puzzle. Sorry again for sending this! Cheers Amin On Fri, Sep 4, 2009 at 10:38 AM, Amin Mohammed-

Re: Filtering question/advice

2009-09-08 Thread Chris Hostetter
: Hi : I include a testcase to show what I am trying to do. Testcase number 3 : fails. the mailing list is finicky about attachments ... the best thing to do is to include your test case directly in the body of your email as plain text. : > I created a test case to test this solution and it wo

Re: Filtering question/advice

2009-09-09 Thread Amin Mohammed-Coleman
Hi Thanks for your reponse. Here is the following testcase: public class UnderwriterReferenceTest { private Directory directory; private Analyzer analyzer; private IndexSearcher indexSearcher; private IndexWriter indexWriter; private Document layerDocumentA; @Before

Re: Filtering question/advice

2009-09-17 Thread Chris Hostetter
FWWI: a test case with multiple asserts is more useful if you clarify where it failes ... ie: show us the failure message, or put a comment on athe line of the assert that fails. i didn't run your testcase, but skimming it a few things jumpt out at me that might explain whatever problem you ar

Re: Filtering question/advice

2009-09-24 Thread Amin Mohammed-Coleman
Hi Sorry for not getting back to you. Been swamped with stuff and work and home. Just managed to check my lucene emails! You are right i made some silly mistakes with the testcase and have updated accordingly. The test is still failing but the properties are set correctly: public class Underwr