Re: NullPointerException in LongComparator.setTopValue

2021-04-26 Thread Adrien Grand
E michael.gr...@skidata.com | www.skidata.com > > -Original Message- > From: Adrien Grand > Sent: Thursday, March 18, 2021 12:12 > To: Lucene Users Mailing List > Subject: Re: NullPointerException in LongComparator.setTopValue > > Hi Michael, > > At first sig

RE: NullPointerException in LongComparator.setTopValue

2021-04-21 Thread Michael Grafl - SKIDATA
of welcoming people SKIDATA GmbH Lakeside B06 | 9020 Klagenfurt | Austria P +43 6246 888-6177 E michael.gr...@skidata.com | www.skidata.com -Original Message- From: Adrien Grand Sent: Thursday, March 18, 2021 12:12 To: Lucene Users Mailing List Subject: Re: NullPointerException in

Re: NullPointerException in LongComparator.setTopValue

2021-03-18 Thread Adrien Grand
Hi Michael, At first sight, this looks more like an Elasticsearch bug than like a Lucene bug to me. Can you file an issue at https://github.com/elastic/elasticsearch and share the search request than you are running? On Thu, Mar 18, 2021 at 11:52 AM Michael Grafl - SKIDATA < michael.gr...@skidata

Re: NullPointerException thrown on tokenizer in 4.1, worked okay in 3.6

2013-02-26 Thread Paul Taylor
On 26/02/2013 12:29, Paul Taylor wrote: This code worked in 3.6 but now throws nullpointer exception in 41, Im not expecting there to be a token created, but surely it shouldn't throw NullPointerException Tokenizer tokenizer = new org.apache.lucene.analysis.standard.StandardTokenizer(Version.

Re: NullPointerException using IndexReader.termDocs when there are no matches

2012-05-18 Thread Michael McCandless
a next() method. > >> -Original Message- >> From: Michael McCandless [mailto:luc...@mikemccandless.com] >> Sent: Thursday, May 17, 2012 6:20 PM >> To: java-user@lucene.apache.org >> Subject: Re: NullPointerException using IndexReader.termDocs when there >

RE: NullPointerException using IndexReader.termDocs when there are no matches

2012-05-18 Thread Edward W. Rouse
Thanks, I missed that. And the API doc fails to mention it, though it is pretty standard for a next() method. > -Original Message- > From: Michael McCandless [mailto:luc...@mikemccandless.com] > Sent: Thursday, May 17, 2012 6:20 PM > To: java-user@lucene.apache.org &

Re: NullPointerException using IndexReader.termDocs when there are no matches

2012-05-17 Thread Michael McCandless
I think you need to pay attention to what td.next() returned; I suspect in your case it returned false which means you cannot use any of its APIs (.doc(), .freq(), etc.) after that. Mike McCandless http://blog.mikemccandless.com On Thu, May 17, 2012 at 5:52 PM, Edward W. Rouse wrote: > Lucene 3

Re: NullPointerException in FieldDocSortedHitQueue.lessThan with custom SortComparator

2009-02-02 Thread Erick Erickson
To quote the guys... "patches are always welcome". Glad you found a solution Erick On Mon, Feb 2, 2009 at 8:35 AM, ninaS wrote: > > I already found another solution: I don't use a custom SortComparator. > Another solution would be to define a default value for null. > > Would be nice if lucene

Re: NullPointerException in FieldDocSortedHitQueue.lessThan with custom SortComparator

2009-02-02 Thread ninaS
I already found another solution: I don't use a custom SortComparator. Another solution would be to define a default value for null. Would be nice if lucene in future would be able to search by null values also if a custom SortComparator is used. To tell you more: public class MyComparator ext

Re: NullPointerException in FieldDocSortedHitQueue.lessThan with custom SortComparator

2009-02-02 Thread Erick Erickson
Ah, I see. The indention and lack of braces fooled me. You might consider making things as easy as possible when asking people to volunteer their time trying to help you. Then I'm unsure what's the problem, you could try showing us the entire stack trace. Have you defined your own compare function

Re: NullPointerException in FieldDocSortedHitQueue.lessThan with custom SortComparator

2009-02-02 Thread ninaS
That's not true: have a look at the "else"-block. The problem is that lucene's FieldDocSortedHitQueue does only test for null values if uses the type FieldDoc.STRING. With FieldDoc.CUSTOM lucene assumes ci to be never null: FieldDocSortedHitQueue 163-166: case SortField.CUSTOM:{

Re: NullPointerException in FieldDocSortedHitQueue.lessThan with custom SortComparator

2009-01-28 Thread Erick Erickson
Well, just glancing at the code you have no assurance that cj != null. See below. On Wed, Jan 28, 2009 at 4:58 AM, ninaS wrote: > > Hello, > > I am using a custom SortComparator implementation where I need to override > a > method in order to handle Null values: > > @Override > public S

Re: NullPointerException

2008-09-27 Thread Michael McCandless
It looks like either "null" was passed to Document.addField(...), or, a Field instance with "null" as its name was added to the document? Mike Noble Paul നോബിള്‍ नोब्ळ् wrote: Any idea on how this exception can happen? -- Forwarded message -- From: Dinesh Gupta <[EMAIL PR

Re: NullPointerException while sorting on INT

2007-10-24 Thread Bhavin Pandya
Hi, I am getting NullPointerException while sorting on a field using SortField.INT same is working for SortField.STRING Sorry guys... I found my mistake... I was using wrong Types my data has FLOAT data I used SortField.AUTO and its working fine now. Thanks. Bhavin pandya - O

RE: NullPointerException in ParallelMultiSearcher

2005-12-21 Thread Zhang, Lisheng
nie Kolehmainen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 20, 2005 11:59 PM To: java-user@lucene.apache.org Subject: Re: NullPointerException in ParallelMultiSearcher I believe the most common case is when you do a search with Sort (AUTO feature), and one of the fields you sort by is empty.

Re: NullPointerException in ParallelMultiSearcher

2005-12-21 Thread Ronnie Kolehmainen
I believe the most common case is when you do a search with Sort (AUTO feature), and one of the fields you sort by is empty. The underlying IndexSearcher throws a RuntimeException and "docs" (result from searcher.search()) is never set, which results in a NullPointerException when hits() is cal

RE: NullPointerException in ParallelMultiSearcher

2005-12-20 Thread Zhang, Lisheng
Hi, I have not received any feedback yet, any comments would be greatly appreciated! Lisheng -Original Message- From: Zhang, Lisheng Sent: Thursday, December 01, 2005 12:30 PM To: 'java-user@lucene.apache.org' Subject: NullPointerException in ParallelMultiSearcher Hi, We are using lu