How to resuse FacetField in lucene

2017-01-16 Thread Chellasamy G
Hi, I am trying to reuse Field and Document classes in lucene for fast indexing. I have used faceting in my application. So when trying to reuse FacetField by calling setStringValue() function, it is throwing NullPointerException. Please let me know how to reuse FacetField. Thanks

Re: Weird corruption symptom, not making sense

2017-01-16 Thread Trejkaz
On Tue, Jan 17, 2017 at 9:31 AM, Uwe Schindler wrote: > ...or a JVM bug. We have seen those around PagedBytes in the past. What Java > version? Actually I just did a bit more digging and found this: https://issues.apache.org/jira/browse/LUCENE-6948 And of course, even though we're on a later v

RE: Weird corruption symptom, not making sense

2017-01-16 Thread Uwe Schindler
...or a JVM bug. We have seen those around PagedBytes in the past. What Java version? - Uwe Schindler Achterdiek 19, D-28357 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Trejkaz [mailto:trej...@trypticon.org] > Sent: Monday, January 16, 2017 11:2

Weird corruption symptom, not making sense

2017-01-16 Thread Trejkaz
I have this thing where our UninvertingReader is getting an ArrayIndexOutOfBoundsException in production. I'm sure the index is corrupt, but I tried investigating the code and it still seems a bit odd. Caused by: java.lang.ArrayIndexOutOfBoundsException: -48116 at org.apache.lucene.util.PagedBytes

Issue when using BlockGroupingCollector

2017-01-16 Thread Sidhant Aggarwal
Im trying to use the BlockGroupingCollector to get grouped results when searching in Lucene. I had indexed my doucments using the addDocuments function in IndexWriter and also added a group separator at the end of each group. Using this code: val groupEndDocs = new TermQuery(new Term("groupEnd

Re: question

2017-01-16 Thread Erick Erickson
"it depends". I'm assuming that your case 1 is intended to be phrase searches whereas case 2 is just boolean (and specifically AND is the operator). So, within 1 (assuming phrase queries) the results should NOT be the same, that is "sas institute" (as a phrase) should not return the same results a

Re: question

2017-01-16 Thread Erik Hatcher
Or a no-slop PhraseQuery, where order also matters. Erik > On Jan 16, 2017, at 12:27, Markus Jelsma wrote: > > Yes, they should be the same unless the field is indexed with shingles, in > that case order matters. > Markus > > -Original message- >> From:Julius Kravjar >> Sent: Mo

RE: question

2017-01-16 Thread Markus Jelsma
Yes, they should be the same unless the field is indexed with shingles, in that case order matters. Markus -Original message- > From:Julius Kravjar > Sent: Monday 16th January 2017 18:20 > To: java-user@lucene.apache.org > Subject: question > > May I have one question? One company - w

question

2017-01-16 Thread Julius Kravjar
May I have one question? One company - we used their sw - talked to us that in Lucene it is normal that the search results for 1. "sas institute" "institute sas" are the same. 2. sas institute institute sas are the same 3. the number of searches of "sas institute" is smaller then sas institute (