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 F39A89F3A for ; Thu, 28 Jun 2012 13:18:47 +0000 (UTC) Received: (qmail 78151 invoked by uid 500); 28 Jun 2012 13:18:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 77984 invoked by uid 500); 28 Jun 2012 13:18:46 -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 77941 invoked by uid 99); 28 Jun 2012 13:18:45 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 13:18:45 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5B04114284D for ; Thu, 28 Jun 2012 13:18:44 +0000 (UTC) Date: Thu, 28 Jun 2012 13:18:44 +0000 (UTC) From: "Chris Male (JIRA)" To: dev@lucene.apache.org Message-ID: <276953334.66507.1340889524375.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1480032164.66462.1340888264216.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (LUCENE-4178) FieldType.setTokenized shoudl be true by default 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/LUCENE-4178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403083#comment-13403083 ] Chris Male commented on LUCENE-4178: ------------------------------------ +1 > FieldType.setTokenized shoudl be true by default > ------------------------------------------------ > > Key: LUCENE-4178 > URL: https://issues.apache.org/jira/browse/LUCENE-4178 > Project: Lucene - Java > Issue Type: Bug > Affects Versions: 4.0 > Reporter: Robert Muir > > This is really confusing, see LUCENE-4176 where a user hit this. > The example code from the user there reads: > {code} > FieldType fieldType = new FieldType(); > fieldType.setIndexed(true); > fieldType.setStored(true); > {code} > Its really trappy that this does not invoke the analyzer: because historically we did this unless you specified NOT_ANALYZED. > So i think fieldType.setTokenized(true) should be the default: things like StringField can turn it off. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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