Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32409 invoked from network); 26 Feb 2010 19:21:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 19:21:09 -0000 Received: (qmail 35394 invoked by uid 500); 26 Feb 2010 19:21:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35263 invoked by uid 500); 26 Feb 2010 19:21:07 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 35255 invoked by uid 99); 26 Feb 2010 19:21:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 19:21:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.213.161.134] (HELO pmx.sirma.bg) (62.213.161.134) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 19:20:59 +0000 X-Virus-Scanned: Sirma Antivirus System Received: from [192.168.128.140] (ivasilev.sirma.int [192.168.128.140]) by pmx.sirma.bg (Sirma mail system) with ESMTP id 7D11B24003 for ; Fri, 26 Feb 2010 21:20:38 +0200 (EET) Message-ID: <4B881F05.1020202@sirma.bg> Date: Fri, 26 Feb 2010 21:20:37 +0200 From: Ivan Vasilev User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: LUCENE MAIL LIST Subject: NumericField exact match Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Guys, Is it possible to make exact searches on fields that are of type NumericField and if yes how? In the LIA book part 2 I found only information about Range searches on such fields and how to Sort them. Example - I have field "size" that can take integers as values. I want to get docs that are with "size:100". For the regular fields "size:100" is OK to pass to Parser but with NumericField it does not work. The only approach to support such fields that I can see is - to have parallel casual Field (example "size2") and to index the same data there. And then when user wants exact search on "size" I to perform "size2:100". Is this the most appropriate way for my case on your opinion? Thanks, Ivan --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org