Have you set an analyzer when you create your IndexWriter?
-- Ian. P.S. Please start new questions in new messages with sensible subjects. On Mon, Nov 11, 2013 at 9:00 AM, Rohit Girdhar <rohit.ii...@gmail.com> wrote: > Hi > > I was trying to use the lucene JAVA API to create an index. I am repeatedly > getting NullPointerException when I try to add a document with a > TextField() field to the IndexWriter. The exception is: > http://pastebin.com/KFZT4XNV > I even tried to use the deprecated Field() API, but still the same > exception. > Any pointers? > > Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org