Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62AB110A60 for ; Mon, 11 Nov 2013 16:31:35 +0000 (UTC) Received: (qmail 41096 invoked by uid 500); 11 Nov 2013 16:31:26 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 40990 invoked by uid 500); 11 Nov 2013 16:31:25 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 40744 invoked by uid 99); 11 Nov 2013 16:31:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 16:31:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian.lea@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 16:31:18 +0000 Received: by mail-ie0-f182.google.com with SMTP id as1so8099280iec.27 for ; Mon, 11 Nov 2013 08:30:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=kSByEzpP+sbK2clAmojuc35ySFjKXZatZ4rzTKdZUUc=; b=Agdr7SyK7etzDgUJxfd1/ir4zmQSh14M9xY4VZ+BC1KeLeEck/8HMW/jI9DMVsaVkB VGf9sJddpPH/PqyRT83EXjPyRLOX4zyRpI+Qj+sf6k1WwYSDwgbKsyCdBTiEuydJimKx a4Xvsj2NsZRVt+txKV5onT+gnhFXMVY5nMQTCBMXkneruwJSGZnsuDHXfc6lZEx5YGvA 5Qev5uwXRlawVAnqNOBHnzaHU9DCd25o0L+tN5r6uhZS7tPvOUlEQkrTjJSHZJVncSgx EZpQoUCVHCyuXiZDJDgUz8uLReR3j4BCw5GkNN0ee9BnR9WzO/a/qbSva33h8KnErley 9AVA== X-Received: by 10.50.11.11 with SMTP id m11mr12898360igb.47.1384187458392; Mon, 11 Nov 2013 08:30:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.233.51 with HTTP; Mon, 11 Nov 2013 08:30:38 -0800 (PST) In-Reply-To: References: From: Ian Lea Date: Mon, 11 Nov 2013 16:30:38 +0000 Message-ID: Subject: Re: subscribe To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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 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-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org