Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BFC1E4DA1 for ; Tue, 17 May 2011 23:15:03 +0000 (UTC) Received: (qmail 9131 invoked by uid 500); 17 May 2011 23:15:03 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 9068 invoked by uid 500); 17 May 2011 23:15:03 -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 Delivered-To: moderator for general@lucene.apache.org Received: (qmail 15913 invoked by uid 99); 17 May 2011 21:41:36 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Date: Tue, 17 May 2011 14:41:09 -0700 (PDT) From: zaq To: general@lucene.apache.org Message-ID: <1305668469868-2954451.post@n3.nabble.com> Subject: searching for finiite keyword matches MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I've been trying to figure out the best way to search a document for a set of given keywords. In other words, I have a defined set of keywords I want to match and a document within which to search for those keywords. I also need to know which of the keywords match and not just whether any did. Certainly, the simplest way seems to just run a query for each keyword against the index that the doc is in. But seems rather crude and if the list of keywords gets large, would be a nasty performance problem. Can't figure out any more clever and/or efficient way to go about it. Any suggestions? Cheers, Zaq -- View this message in context: http://lucene.472066.n3.nabble.com/searching-for-finiite-keyword-matches-tp2954451p2954451.html Sent from the Lucene - General mailing list archive at Nabble.com.