Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 81711 invoked from network); 29 Mar 2011 12:59:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 12:59:44 -0000 Received: (qmail 67133 invoked by uid 500); 29 Mar 2011 12:59:43 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 67088 invoked by uid 500); 29 Mar 2011 12:59:43 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 67081 invoked by uid 99); 29 Mar 2011 12:59:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 12:59:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 12:59:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B2FB385E10 for ; Tue, 29 Mar 2011 12:59:05 +0000 (UTC) Date: Tue, 29 Mar 2011 12:59:05 +0000 (UTC) From: "Ryan McKinley (JIRA)" To: dev@lucene.apache.org Message-ID: <1088338777.18809.1301403545729.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <832831330.15241.1299914159456.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2423) FieldType can take Object rather then String MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012465#comment-13012465 ] Ryan McKinley commented on SOLR-2423: ------------------------------------- It is in TrieDateField {code:java} long time = (value instanceof Date) ? ((Date)value).getTime() : super.parseMath(null, value.toString()).getTime(); {code} Just realized that DateField uses the default createField I will add a test and fix now > FieldType can take Object rather then String > -------------------------------------------- > > Key: SOLR-2423 > URL: https://issues.apache.org/jira/browse/SOLR-2423 > Project: Solr > Issue Type: Improvement > Reporter: Ryan McKinley > Assignee: Ryan McKinley > Fix For: 3.2, 4.0 > > Attachments: SOLR-2423-field-object.patch > > > Currently, FieldType takes a String value and converts that to whatever it uses internally -- it would be great to be able to pass an Object in directly. For embeded solr, and for UpdateRequestProcessors that wish to reuse objects in various fields, this will avoid conversion to and from string. > This is a major API change, so it should only apply to 4.0 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org