Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 84779 invoked from network); 9 May 2004 09:27:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 May 2004 09:27:00 -0000 Received: (qmail 72431 invoked by uid 500); 9 May 2004 09:26:33 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 72102 invoked by uid 500); 9 May 2004 09:26:31 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 72076 invoked from network); 9 May 2004 09:26:30 -0000 Received: from unknown (HELO erbium.wyona.ch) (195.226.6.68) by daedalus.apache.org with SMTP; 9 May 2004 09:26:30 -0000 Received: from 80-219-13-237.dclient.hispeed.ch ([80.219.13.237] helo=wyona.com) by erbium.wyona.ch with asmtp (Exim 3.35 #1 (Debian)) id 1BMka3-00057G-00 for ; Sun, 09 May 2004 11:26:43 +0200 Message-ID: <409DF952.2040507@wyona.com> Date: Sun, 09 May 2004 11:26:42 +0200 From: Michael Wechner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: Lucene Developers List Subject: Re: method for getting the field type References: <409D7231.3020106@wyona.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Erik Hatcher wrote: > On May 8, 2004, at 7:50 PM, Michael Wechner wrote: > >> which would return something like >> >> Text, UnIndexed, etc. >> >> or am I overlooking something? >> >> I have seen that toString() is delivering the type as part of the >> return value, >> but I think it would make sense to get this information without >> string manipulation. >> >> WDYT? > > > Just out of curiosity, what would you do with the type of the field? I'll output the search results as XML (for Lenya) and would like to add the field type as attribute, e.g. Unindexed 2004 Text Untertitel Text Dear Lenya Keyword 0du06ovtc Unindexed null Unindexed /2004/05/08/al/kommentarDU04HGF8-12.nzzoml 0.21875 /2004/05/08/al/kommentarDU04HGF8-12.nzzoml Liebe Levi null Dear Lenya > It's useful to me to have something tangible in mind. sure. Depending on the field type the XSLT then can show it in various ways. I'm currently extracting it via toString().substring(0,toString.indexOf("<")), which doesn't really hurt, but still ;-) > >> btw, the Javadoc of isTermVectorStored() has a typo: available >> instead avaliable, but maybe this has been fixed within the CVS already. > > > This has been corrected in the CVS version. thanks btw, the XML above grew on my own mindset. It would be cool to standardize it across the various search engines. Thanks Michi > > Erik > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-dev-help@jakarta.apache.org > > -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://cocoon.apache.org/lenya/ michael.wechner@wyona.com michi@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org