From general-return-3265-apmail-lucene-general-archive=lucene.apache.org@lucene.apache.org Tue May 17 07:31:37 2011 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 B3D5C4F1B for ; Tue, 17 May 2011 07:31:37 +0000 (UTC) Received: (qmail 96489 invoked by uid 500); 17 May 2011 07:31:37 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 96056 invoked by uid 500); 17 May 2011 07:31:33 -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 90079 invoked by uid 99); 17 May 2011 07:28:08 -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 (nike.apache.org: local policy) Date: Tue, 17 May 2011 00:27:40 -0700 (PDT) From: HotWeb To: general@lucene.apache.org Message-ID: <1305617260381-2951485.post@n3.nabble.com> Subject: search exact descriptor MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi everybody, I using Lucene 3.0.3 in a java application. I search a way to have a function to match only one word in my query. I have a field which contains descriptor of the document. Sometimes, users must search only for a word. I have a example to give you with the old search engine. mc = ( homme whitout "homme" ) Results (mc) homme : 90308 hits (mc) "homme" : 90003 hits whitout : 305 ------------- Total : 305 What is the way to have a similair function ? I tried to untokenize this field but the results is the same and the query match like "homme*" not "homme" Maybe if y can check the position of this term ? but want to be sure that it's the only word with no term followed. Sorry for my bad english :( Thank you very much for your futur reply Guillaume -- View this message in context: http://lucene.472066.n3.nabble.com/search-exact-descriptor-tp2951485p2951485.html Sent from the Lucene - General mailing list archive at Nabble.com.