Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 33604 invoked from network); 12 Aug 2002 20:28:03 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Aug 2002 20:28:03 -0000 Received: (qmail 22116 invoked by uid 97); 12 Aug 2002 20:28:29 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 22092 invoked by uid 97); 12 Aug 2002 20:28:29 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 22075 invoked by uid 98); 12 Aug 2002 20:28:28 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <20020812202803.52599.qmail@web21510.mail.yahoo.com> Date: Mon, 12 Aug 2002 13:28:03 -0700 (PDT) From: karen bran Subject: summary text for indexed jsp files -- modify the HTMLParser.jj To: lucene-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1830814523-1029184083=:52397" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --0-1830814523-1029184083=:52397 Content-Type: text/plain; charset=us-ascii Hello, I modified the IndexHTML.java and let the jsp files be indexed, but the source code of the jsp tags such as <%@page import....... shows up in the result summary. I checked this mailing list messages, someone suggested to modify the HTMLParser.jj file to make the jsp tag text as the 3rd comment. Since I am not familiar with the Javacc grammar, I don't know how to hack the HTMLParser.jj and insert in the 3rd comment tag for the jsp tag. here is the 2 existing comment tags in the HTMLParser.jj, can someone help me to figure out how to add the 3rd one ??? Thanks a lot. TOKEN : { < CommentText1: (~["-"])+ | "-" > | < CommentEnd1: "-->" > : DEFAULT } TOKEN : { < CommentText2: (~[">"])+ > | < CommentEnd2: ">" > : DEFAULT } WithinComment3> TOKEN : { < CommentText3: ?????? > | < CommentEnd3: ??????> : DEFAULT } --------------------------------- Do You Yahoo!? HotJobs, a Yahoo! service - Search Thousands of New Jobs --0-1830814523-1029184083=:52397--