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 CED71D3CA for ; Tue, 16 Oct 2012 08:43:09 +0000 (UTC) Received: (qmail 30637 invoked by uid 500); 16 Oct 2012 08:43:08 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 30500 invoked by uid 500); 16 Oct 2012 08:43:05 -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 30440 invoked by uid 99); 16 Oct 2012 08:43:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 08:43:03 +0000 Date: Tue, 16 Oct 2012 08:43:03 +0000 (UTC) From: "Mark Harwood (JIRA)" To: dev@lucene.apache.org Message-ID: <970412417.50650.1350376983674.JavaMail.jiratomcat@arcas> In-Reply-To: <312681985.50039.1350366304645.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (SOLR-3950) Attempting postings="BloomFilter" results in UnsupportedOperationException 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-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476854#comment-13476854 ] Mark Harwood commented on SOLR-3950: ------------------------------------ BloomFilterPostingsFormat is designed to wrap another choice of PostingsFormat and adds ".blm" files to the other files created by the choice of delegate. However your code has instantiated a BloomFilterPostingsFormat without passing a choice of delegate - presumably using the zero-arg constructor. The comments in the code for this zero-arg constructor state: // Used only by core Lucene at read-time via Service Provider instantiation - // do not use at Write-time in application code. > Attempting postings="BloomFilter" results in UnsupportedOperationException > -------------------------------------------------------------------------- > > Key: SOLR-3950 > URL: https://issues.apache.org/jira/browse/SOLR-3950 > Project: Solr > Issue Type: Bug > Affects Versions: 4.1 > Environment: Linux bigindy5 2.6.32-279.9.1.el6.centos.plus.x86_64 #1 SMP Wed Sep 26 03:52:55 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux > [root@bigindy5 ~]# java -version > java version "1.7.0_07" > Java(TM) SE Runtime Environment (build 1.7.0_07-b10) > Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode) > Reporter: Shawn Heisey > Fix For: 4.1 > > > Tested on branch_4x, checked out after BlockPostingsFormat was made the default by LUCENE-4446. > I used 'ant generate-maven-artifacts' to create the lucene-codecs jar, and copied it into my sharedLib directory. When I subsequently tried postings="BloomFilter" I got a the following exception in the log: > {code} > Oct 15, 2012 11:14:02 AM org.apache.solr.common.SolrException log > SEVERE: java.lang.UnsupportedOperationException: Error - org.apache.lucene.codecs.bloom.BloomFilteringPostingsFormat has been constructed without a choice of PostingsFormat > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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