You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "dan (JIRA)" <ji...@apache.org> on 2006/04/20 06:41:34 UTC
[jira] Created: (LUCENE-548) Sort bug using ParallelMultiSearcher
Sort bug using ParallelMultiSearcher
------------------------------------
Key: LUCENE-548
URL: http://issues.apache.org/jira/browse/LUCENE-548
Project: Lucene - Java
Type: Bug
Components: Search
Versions: 1.9
Environment: Linux FC2 Java 1.4.9
Reporter: dan
Priority: Minor
>>>>> Output:
java.lang.ClassCastException: java.lang.String
at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:119)
at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:61)
at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:271)
>>>>> Input:
- This only occurs when searching more than one index using ParallelMultiSearcher
- I use the signature new Sort( "date", true)
- The values in dates are strings in the form 20060419
- The call to getType in FieldDocSortedHitQueue misinterprets the value as an INT, then the exception is thrown
>>>>> Available workaround
- I use the the signature new Sort(new SortField( "date", SortField.STRING, true)) and the problem goes away.
--
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
[jira] Resolved: (LUCENE-548) Sort bug using ParallelMultiSearcher
Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Otis Gospodnetic resolved LUCENE-548.
-------------------------------------
Resolution: Won't Fix
I agree, doesn't seem worth fixing. Explicit STRING is recommended.
> Sort bug using ParallelMultiSearcher
> ------------------------------------
>
> Key: LUCENE-548
> URL: https://issues.apache.org/jira/browse/LUCENE-548
> Project: Lucene - Java
> Issue Type: Bug
> Components: Search
> Affects Versions: 1.9
> Environment: Linux FC2 Java 1.4.9
> Reporter: dan
> Priority: Minor
>
> >>>>> Output:
> java.lang.ClassCastException: java.lang.String
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:119)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:61)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:271)
> >>>>> Input:
> - This only occurs when searching more than one index using ParallelMultiSearcher
> - I use the signature new Sort( "date", true)
> - The values in dates are strings in the form 20060419
> - The call to getType in FieldDocSortedHitQueue misinterprets the value as an INT, then the exception is thrown
> >>>>> Available workaround
> - I use the the signature new Sort(new SortField( "date", SortField.STRING, true)) and the problem goes away.
--
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-548) Sort bug using ParallelMultiSearcher
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LUCENE-548?page=comments#action_12375370 ]
Yonik Seeley commented on LUCENE-548:
-------------------------------------
It looks like problems could also happen with a MultiSearcher too.
In general, don't use sort type AUTO... always explicitly specify how to sort. Different searchers may come back with different sort types, and then there isn't a good way to merge the results.
This could probably be fixed in the straight MultiSearcher case by getting the sort type from the first searcher that returns results, and using that for all the other searchers. Not sure if it's worth the fix though...
> Sort bug using ParallelMultiSearcher
> ------------------------------------
>
> Key: LUCENE-548
> URL: http://issues.apache.org/jira/browse/LUCENE-548
> Project: Lucene - Java
> Type: Bug
> Components: Search
> Versions: 1.9
> Environment: Linux FC2 Java 1.4.9
> Reporter: dan
> Priority: Minor
>
> >>>>> Output:
> java.lang.ClassCastException: java.lang.String
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:119)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:61)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:271)
> >>>>> Input:
> - This only occurs when searching more than one index using ParallelMultiSearcher
> - I use the signature new Sort( "date", true)
> - The values in dates are strings in the form 20060419
> - The call to getType in FieldDocSortedHitQueue misinterprets the value as an INT, then the exception is thrown
> >>>>> Available workaround
> - I use the the signature new Sort(new SortField( "date", SortField.STRING, true)) and the problem goes away.
--
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
[jira] Commented: (LUCENE-548) Sort bug using ParallelMultiSearcher
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647170#action_12647170 ]
Mark Miller commented on LUCENE-548:
------------------------------------
It won't work with ParallelMultiSearcher and I agree that its not really worth it for MultiSearcher - I've seen more than once...the way to do it is not use auto. I'd like to get this issue resolved though, so lets resolve it 'won't fix', or I'll add the 'fix' to MultiSearcher.
> Sort bug using ParallelMultiSearcher
> ------------------------------------
>
> Key: LUCENE-548
> URL: https://issues.apache.org/jira/browse/LUCENE-548
> Project: Lucene - Java
> Issue Type: Bug
> Components: Search
> Affects Versions: 1.9
> Environment: Linux FC2 Java 1.4.9
> Reporter: dan
> Priority: Minor
>
> >>>>> Output:
> java.lang.ClassCastException: java.lang.String
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:119)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:61)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:271)
> >>>>> Input:
> - This only occurs when searching more than one index using ParallelMultiSearcher
> - I use the signature new Sort( "date", true)
> - The values in dates are strings in the form 20060419
> - The call to getType in FieldDocSortedHitQueue misinterprets the value as an INT, then the exception is thrown
> >>>>> Available workaround
> - I use the the signature new Sort(new SortField( "date", SortField.STRING, true)) and the problem goes away.
--
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org