Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0291A1234 for ; Sun, 24 Apr 2011 23:00:55 +0000 (UTC) Received: (qmail 8361 invoked by uid 500); 24 Apr 2011 23:00:51 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 8311 invoked by uid 500); 24 Apr 2011 23:00:51 -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 8304 invoked by uid 99); 24 Apr 2011 23:00:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2011 23:00:51 +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; Sun, 24 Apr 2011 23:00:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 263C8B1633 for ; Sun, 24 Apr 2011 23:00:11 +0000 (UTC) Date: Sun, 24 Apr 2011 23:00:11 +0000 (UTC) From: "Thomas Joiner (JIRA)" To: dev@lucene.apache.org Message-ID: <2101994934.79202.1303686011152.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-1986) Allow users to define multiple subfield types in AbstractSubTypeFieldType MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Joiner updated SOLR-1986: -------------------------------- Attachment: SOLR-1986.patch Finally had a chance to create some tests for it. I think that the tests that I made cover the functionality of the class fairly well, however if you have any feedback/improvements that you would like me to make, please feel free. I also improved the documentation for the AbstractMultiSubTypeFieldType class...most of the commenting is probably completely unnecessary for anyone with any familiarity with the Solr core, however to anybody who is trying to create a custom type that isn't familiar with the core, it should help them understand what the class is doing a little bit. Note that this patch should be applied independently of the original patch > Allow users to define multiple subfield types in AbstractSubTypeFieldType > ------------------------------------------------------------------------- > > Key: SOLR-1986 > URL: https://issues.apache.org/jira/browse/SOLR-1986 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis > Reporter: Mark Allan > Priority: Minor > Attachments: AbstractMultiSubTypeFieldType.patch, SOLR-1986.patch, multiSubType.patch > > Original Estimate: 48h > Remaining Estimate: 48h > > A few small changes to the AbstractSubTypeFieldType class to allow users to define distinct field types for each subfield. This enables us to define complex data types in the schema. > For example, we have our own subclass of the CoordinateFieldType called TemporalCoverage where we store a start and end date for an event but now we can store a name for the event as well. > > In this example, the start and end dates get stored as trie-coded integer subfields and the description as a string subfield. -- 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