From lucene-user-return-6385-apmail-jakarta-lucene-user-archive=jakarta.apache.org@jakarta.apache.org Thu Dec 04 21:53:12 2003 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 44228 invoked from network); 4 Dec 2003 21:53:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Dec 2003 21:53:12 -0000 Received: (qmail 40576 invoked by uid 500); 4 Dec 2003 21:52:56 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 40353 invoked by uid 500); 4 Dec 2003 21:52:54 -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 40340 invoked from network); 4 Dec 2003 21:52:54 -0000 Received: from unknown (HELO mailgw3a.lmco.com) (192.35.35.7) by daedalus.apache.org with SMTP; 4 Dec 2003 21:52:54 -0000 Received: from emss04g01.ems.lmco.com ([166.17.13.122]) by mailgw3a.lmco.com (8.11.6p2/8.11.6) with ESMTP id hB4Lqxf25935 for ; Thu, 4 Dec 2003 16:53:00 -0500 (EST) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1X6 #30760) id <0HPE001014SBHO@lmco.com> for lucene-user@jakarta.apache.org; Thu, 04 Dec 2003 16:52:59 -0500 (EST) Received: from EMSS04I00.us.lmco.com ([166.17.13.135]) by lmco.com (PMDF V6.1-1X6 #30760) with ESMTP id <0HPE00FJF4SBUA@lmco.com> for lucene-user@jakarta.apache.org; Thu, 04 Dec 2003 16:52:59 -0500 (EST) Received: from EMSS04M14.us.lmco.com ([162.16.20.50]) by EMSS04I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.2966); Thu, 04 Dec 2003 16:52:59 -0500 Date: Thu, 04 Dec 2003 16:52:59 -0500 From: "Pleasant, Tracy" Subject: Returning one result To: Lucene Users List Message-id: <1B76D3F17F4BE44283AD3C1C92AB590B3E7E81@EMSS04M14.us.lmco.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6375.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Thread-Topic: NPE when using explain Thread-Index: AcO6pttQwoAsH1a9RvWLpaxrtIbjqgACZU1A content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 04 Dec 2003 21:52:59.0607 (UTC) FILETIME=[FBAF0E70:01C3BAB0] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I am indexing a group of items and one field , id, is unique. When the user clicks on a results I want just that one result to show. I index and search using SimpleAnalyzer. Query query_es = QueryParser.parse(query, "id", new SimpleAnalyzer()); It should return only one result but returns 200. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org