You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2009/08/04 17:52:14 UTC
[jira] Updated: (SOLR-1299) In distributed search cannot search on
any schema field in ascending order (descending is OK)
[ https://issues.apache.org/jira/browse/SOLR-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley updated SOLR-1299:
-------------------------------
Attachment: SOLR-1299.patch
Patch attached.
This uses the new Lucene FieldComparator classes and thus we can delete all of the previously copy-n-pasted code from Lucene. It also uncovered (and fixed) bug in our SortMissingLast comparator:
{code}
public Comparable value(int slot) {
Comparable v = values[slot];
- return v==null ? nullVal : null;
+ return v==null ? nullVal : v;
}
{code}
> In distributed search cannot search on any schema field in ascending order (descending is OK)
> ---------------------------------------------------------------------------------------------
>
> Key: SOLR-1299
> URL: https://issues.apache.org/jira/browse/SOLR-1299
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 1.4
> Reporter: David Bowen
> Assignee: Yonik Seeley
> Fix For: 1.4
>
> Attachments: SOLR-1299.patch, SOLR-1299.patch
>
>
> Using the example with some of the exampledocs posted, the url:
> http://localhost:8983/solr/select/?q=*:*&sort=timestamp+desc&fsv=true
> works correctly, but change "desc" to "asc" and you get:
> HTTP ERROR: 500
> null
> java.lang.NullPointerException
> at org.apache.solr.handler.component.QueryComponent.getComparator(QueryComponent.java:284)
> at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:229)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
> at com.proquest.magnolia.solr.plugins.SummonSearchHandler.handleRequestBody(SummonSearchHandler.java:19)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1299)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.