NullPointerException TermBuffer ...felt like a noob with this one..
java.lang.NullPointerException at org.apache.lucene.index.TermBuffer.set(TermBuffer.java:95) at org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:160) at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:232) at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:179) at org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:911) at org.apache.lucene.index.DirectoryReader.docFreq(DirectoryReader.java:644) at org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:138) at org.apache.lucene.search.Similarity.idfExplain(Similarity.java:735) at org.apache.lucene.search.TermQuery$TermWeight.(TermQuery.java:46) at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:171) at org.apache.lucene.search.BooleanQuery$BooleanWeight.(BooleanQuery.java:188) at org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:362) at org.apache.lucene.search.Query.weight(Query.java:101) at org.apache.lucene.search.Searcher.createWeight(Searcher.java:147) at org.apache.lucene.search.Searcher.search(Searcher.java:98)
Ever get t his non-descriptive exception in lucene? its because your passing a null value within the TermQuery!!