lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kudryavtsev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-3950) Attempting postings="BloomFilter" results in UnsupportedOperationException
Date Tue, 25 Mar 2014 08:18:49 GMT

     [ https://issues.apache.org/jira/browse/SOLR-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Kudryavtsev updated SOLR-3950:
-------------------------------------

    Attachment: SOLR-3950.patch

Shawn, I think problem with your patch is that to instantiate class Codec it needs to instantiate
NamedSPILoader instance,and it means to instantiate all posting format implementations, including
BloomFilteringPostingsFormat. But BloomFilteringPostingsFormat needs Codec. Kind of cycle.
   
As a work around we can implement something that Mark suggested as option 1) - something like
"Pulsing41", but for bloom filter posting format. I attached a patch with simple "BloomFiltering41PostingsFormat"
implementation. It can be used like "postingsFormat="BloomFilter41". Why "41"? Just because
we've already have Lucene41PostingsFormat class. It can be "46" as well.
	

> 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
>            Assignee: Shawn Heisey
>             Fix For: 4.8
>
>         Attachments: SOLR-3950-no-arg-constructor-change.patch, SOLR-3950.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message