lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Laflamme (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-515) Using ConstantScoreQuery on a RemoteSearchable throws java.io.NotSerializableException
Date Thu, 09 Mar 2006 00:50:46 GMT
Using ConstantScoreQuery on a RemoteSearchable throws java.io.NotSerializableException
--------------------------------------------------------------------------------------

         Key: LUCENE-515
         URL: http://issues.apache.org/jira/browse/LUCENE-515
     Project: Lucene - Java
        Type: Bug
  Components: Search  
    Versions: 1.9    
    Reporter: Philippe Laflamme


Using a ConstantScoreQuery through a MultiSearcher on a Searchable obtained through RMI (RemoteSearchable)
will throw a java.io.NotSerializableException

The problem seems to be the fact that the ConstantScoreQuery.ConstantWeight has a Searcher
member variable which is not serializable. Keeping a reference to the Searcher does not seem
to be required: the fix seems trivial.

I've created the TestCase to reproduce the issue and the patch to fix it.

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message