You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Philippe Laflamme (JIRA)" <ji...@apache.org> on 2006/03/09 01:52:40 UTC

[jira] Updated: (LUCENE-515) Using ConstantScoreQuery on a RemoteSearchable throws java.io.NotSerializableException

     [ http://issues.apache.org/jira/browse/LUCENE-515?page=all ]

Philippe Laflamme updated LUCENE-515:
-------------------------------------

    Attachment: constantscorequery-testcase.patch
                constantscorequery.patch

Patch files.

> 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
>  Attachments: constantscorequery-testcase.patch, constantscorequery.patch
>
> 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