[ 
http://issues.apache.org/jira/browse/LUCENE-636?page=comments#action_12437789 ] 
            
Johan Stuyts commented on LUCENE-636:
-------------------------------------

I just found out that the patch is incomplete. You can only specify the 
subclass of the SegmentReader class, but not the subclass of the MultiReader 
class. If your index contains multiple segments a MultiReader instead of the 
specified subclass of SegmentReader is created, and it is not possible to cast 
the returned IndexReader to the subclass of SegmentReader you specified in the 
LuceneConfig object.


> [PATCH] Differently configured Lucene 'instances' in same JVM
> -------------------------------------------------------------
>
>                 Key: LUCENE-636
>                 URL: http://issues.apache.org/jira/browse/LUCENE-636
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Johan Stuyts
>         Attachments: Lucene2DifferentConfigurations.patch
>
>
> Currently Lucene can be configured using system properties. When running 
> multiple 'instances' of Lucene for different purposes in the same JVM, it is 
> not possible to use different settings for each 'instance'.
> I made changes to some Lucene classes so you can pass a configuration to that 
> class. The Lucene 'instance' will use the settings from that configuration. 
> The changes do not effect the API and/or the current behavior so are 
> backwards compatible.
> In addition to the changes above I also made the SegmentReader and 
> SegmentTermDocs extensible outside of their package. I would appreciate the 
> inclusion of these changes but don't mind creating a separate issue for them.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to