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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to