Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 42085 invoked from network); 12 Apr 2010 17:31:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 17:31:57 -0000 Received: (qmail 87938 invoked by uid 500); 12 Apr 2010 17:31:55 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 87886 invoked by uid 500); 12 Apr 2010 17:31:55 -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 87870 invoked by uid 99); 12 Apr 2010 17:31:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 17:31:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ramonpm@gmail.com designates 209.85.221.184 as permitted sender) Received: from [209.85.221.184] (HELO mail-qy0-f184.google.com) (209.85.221.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 17:31:47 +0000 Received: by qyk14 with SMTP id 14so6050033qyk.14 for ; Mon, 12 Apr 2010 10:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=+Y/m3j0rVOnhn75+XcVpJ/w89xturGHHwFsifxEkX6o=; b=lu5g0h3zxPkKMgqbX9iGLHK4dL/r93O6HZacvOercbf8BQCNG5CUBtZNBwND9odFrN G1HCdQIOEkirvKARWm/V6YR/lkMcnaKTmLWjjmRCzrD9tIRbN0vK0TGPdjEhP3VbvI5+ vBf/RhWmeDUqdZqEnnBGKlPlNdxeq/KOs0SG0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=L5UvgOH2+SS0l2am8Ry6+8RUTJZ2x2PHB4YSrxzYgNcZjcN1B7NGPoKl6AWSBZuh0V 4PqkYAFhs4MaPGlaVM9W9D/9iCV7ckWzRXVRmXFxUduQ54nzQu5uoasi1aP6yjYpPRhn sXPomkBPgnWm5VpQU+IPUL2kSI6HgTmQZTY6M= MIME-Version: 1.0 Received: by 10.229.84.135 with HTTP; Mon, 12 Apr 2010 10:31:26 -0700 (PDT) Date: Mon, 12 Apr 2010 14:31:26 -0300 Received: by 10.229.230.84 with SMTP id jl20mr6343201qcb.88.1271093486528; Mon, 12 Apr 2010 10:31:26 -0700 (PDT) Message-ID: Subject: Exception, field is not stored From: Ramon De Paula Marques To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00163630ff21bdac3804840d831f X-Virus-Checked: Checked by ClamAV on apache.org --00163630ff21bdac3804840d831f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi guys, I'm trying to use highlighter to a better search on my website, but when th= e search get documents html and pdf that were indexed with a reader causes an exception that tells the field is not stored. I don't know where to attack now, i must try to index documents storing fields? How to do it, for html it is storing automatically i can't set new Field(..., Field.Store.Yes) it is like this: FileInputStream fis =3D new FileInputStream(f); HTMLParser parser =3D new HTMLParser(fis); doc.add(new Field("contents", parser.getReader())); and for pdf, it is indexing like this: InputStream fis =3D new FileInputStream(inputFile); Document luceneDocument =3D LucenePDFDocument.getDocument( fis); writer.addDocument(luceneDocument); can anyone help? --=20 Ramon de Paula Marques Estudante de Engenharia de Computa=E7=E3o - UFG --00163630ff21bdac3804840d831f--