Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 95992 invoked from network); 22 Jul 2008 14:54:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jul 2008 14:54:41 -0000 Received: (qmail 50686 invoked by uid 500); 22 Jul 2008 14:54:39 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 50669 invoked by uid 500); 22 Jul 2008 14:54:39 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 50655 invoked by uid 99); 22 Jul 2008 14:54:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 07:54:39 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 14:53:45 +0000 Received: by fg-out-1718.google.com with SMTP id l27so1047733fgb.27 for ; Tue, 22 Jul 2008 07:53:52 -0700 (PDT) Received: by 10.86.83.2 with SMTP id g2mr6366913fgb.54.1216738431646; Tue, 22 Jul 2008 07:53:51 -0700 (PDT) Received: by 10.86.61.1 with HTTP; Tue, 22 Jul 2008 07:53:51 -0700 (PDT) Message-ID: Date: Tue, 22 Jul 2008 10:53:51 -0400 From: "James Carman" Sender: jcarman@carmanconsulting.com To: general@lucene.apache.org Subject: Matching Search Terms? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 9e2d657a062b6cb9 X-Virus-Checked: Checked by ClamAV on apache.org We have a requirement for our project where the user would like to be able to paste a bunch of terms into a search box. They want to basically "or" together each line of the pasted text as a full-text search query. However, when the results come back, they'd like to know which one of the lines matched the specific item returned. Is there an easy way to do that with Lucene? I looked at the Hit API, but nothing really jumped out at me. I would think that's where I should look.