lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <>
Subject [jira] Commented: (LUCENE-1028) [tiny patch] CustomScoreQuery, etc are not Serializable
Date Sat, 13 Oct 2007 12:45:50 GMT


Doron Cohen commented on LUCENE-1028:

Thanks for catching this Kyle.
Patch looks good to me and working.
I enhanced checkQuery() in test/ to check all queries for serialization.
This catches this bug and verifies the fix.
It also shows that BoostingTermQuery fails fr this check, but I am not sure why.

> [tiny patch] CustomScoreQuery, etc are not Serializable
> -------------------------------------------------------
>                 Key: LUCENE-1028
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.2
>            Reporter: Kyle Maxwell
>            Priority: Critical
>         Attachments: lucene-serialization.diff
> In order to work with ParallelMultiSearcher, Query weights need to be serializable. 
The interface Weight extends, but it appears that some of the newer queries
unnecessarily store global state in their weights, thus causing serialization errors.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message