From lucene-user-return-7453-apmail-jakarta-lucene-user-archive=jakarta.apache.org@jakarta.apache.org Tue Mar 09 19:42:34 2004 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 41551 invoked from network); 9 Mar 2004 19:42:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Mar 2004 19:42:34 -0000 Received: (qmail 26847 invoked by uid 500); 9 Mar 2004 19:42:19 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 26684 invoked by uid 500); 9 Mar 2004 19:42:18 -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 26670 invoked from network); 9 Mar 2004 19:42:18 -0000 Received: from unknown (HELO sn2.cwihosting.com) (66.216.127.33) by daedalus.apache.org with SMTP; 9 Mar 2004 19:42:18 -0000 Received: from h00e07dd8f05b.ne.client2.attbi.com ([24.60.185.190] helo=mgiles-office.visionstudio.com) by sn2.cwihosting.com with esmtp (Exim 4.24) id 1B0n7O-0005Xu-Mz for lucene-user@jakarta.apache.org; Tue, 09 Mar 2004 13:42:22 -0600 Message-Id: <6.0.0.22.0.20040309144152.0256c340@mail.visionstudio.com> X-Sender: mgiles%visionstudio.com@mail.visionstudio.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 09 Mar 2004 14:42:17 -0500 To: "Lucene Users List" From: Michael Giles Subject: Re: Storing numbers In-Reply-To: <404E1D74.1020206@petmystone.com> References: <200403051215.40713.lucene@nitwit.de> <404E1D74.1020206@petmystone.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_104258203==.ALT" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sn2.cwihosting.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - visionstudio.com 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 --=====================_104258203==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Tim, Looks like you can only access it with a subscription. :( Sounds good, though. -Mike At 02:39 PM 3/9/2004, you wrote: >lucene@nitwit.de wrote: > >>Hi! >>I want to store numbers (id) in my index: >> long id = 1069421083284; >> doc.add(Field.UnStored("in", String.valueOf(id))); >>But searching for "id:1069421083284" doesn't return any hits. >>Well, did I misunderstand something? UnStored is the number is stored but >>not index (analyzed), isn't it? Anyway, Field.Text doesn't work either. >>TIA >>Timo > >Craig Walls wrote an excellent article in JDJ at the end of 2002 regarding >Lucene (not shown in any of the resources BTW). He documents using Lucene >along side a database as well as provides two classes (and others >unrelated) that extend the functionality of the StopAnalyzer to include >numbers and or alpha numerics. > >Check out the article at: http://www.sys-con.com/story/print.cfm?storyid=37296 > >HTH, >Tim > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > ________________________________________________________________________ Save and share anything you find online - Furl @ http://www.furl.net --=====================_104258203==.ALT--