Re: [BULK] Re: NPE thrown in invertDocument [RESOLVED]

2006-10-06 Thread Ryan Heinen
Daniel Naber wrote: On Thursday 28 September 2006 23:55, Ryan Heinen wrote: I am creating an index using a RAMDirectory, and am running across a situation where when I call IndexSearcher.addDocument it throws a NullPointerException. Could you create a small test case that reporduces this

Re: Force a query to match at least two clauses

2006-10-06 Thread Ryan Heinen
closely. I am generating the queries programatically already so it should be fairly straightforward to add that call. Thanks again, Ryan -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server On 10/6/06, Ryan Heinen <[EMAIL PROTECTED]> wrote: Hello, If

Force a query to match at least two clauses

2006-10-06 Thread Ryan Heinen
Hello, If I want make sure that only documents that contain at least two of the N TermQueries A, B, C, and D (N=4) are considered matches, what is the best way to approach this? I know I can expand it out into several boolean clauses like so: (+A +B) (+A +C) (+A +D) (+B +C) (+B +D) (+C +D)

Re: [BULK] Re: NPE thrown in invertDocument

2006-09-29 Thread Ryan Heinen
Daniel Naber wrote: On Thursday 28 September 2006 23:55, Ryan Heinen wrote: I am creating an index using a RAMDirectory, and am running across a situation where when I call IndexSearcher.addDocument it throws a NullPointerException. Could you create a small test case that reporduces this

Re: [BULK] StandardAnalyzer question

2006-09-29 Thread Ryan Heinen
Van Nguyen wrote: I have a field in my index that is being tokenized using the StandardAnalyzer. Let’s say that field was: TOOLS FOR TRAILER The word “FOR” is a stop word so it is not being indexed (based on the StandardAnaylzyer). When someone types in TOOLS FOR TRAILER in, I have a Boole

Re: NPE thrown in invertDocument

2006-09-29 Thread Ryan Heinen
I just thought I should add that I am using Lucene 2.0.0. Thanks, Ryan Ryan Heinen wrote: Hello, I am creating an index using a RAMDirectory, and am running across a situation where when I call IndexSearcher.addDocument it throws a NullPointerException. I'll provide the stack trace

NPE thrown in invertDocument

2006-09-28 Thread Ryan Heinen
Hello, I am creating an index using a RAMDirectory, and am running across a situation where when I call IndexSearcher.addDocument it throws a NullPointerException. I'll provide the stack trace first, and then give you any details that may help in resolving this problem. Exception in thread