lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Hill (JIRA)" <>
Subject [jira] [Commented] (SOLR-2636) Explain doesn't deal with negative only queries completely correctly
Date Wed, 06 Jul 2011 00:44:16 GMT


Tom Hill commented on SOLR-2636:

@hoss Shall I close this one?

@yonik Would it make sense for SolrQueryParser to just call makeQueryable?

  public Query parse(String query) throws ParseException {
    return QueryUtils.makeQueryable(super.parse(query));

Then the other three calls to makeQueryable can be deleted, I think. And it fixes the problem
with expain. 

> Explain doesn't deal with negative only queries completely correctly
> --------------------------------------------------------------------
>                 Key: SOLR-2636
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.2
>            Reporter: Tom Hill
>            Assignee: Yonik Seeley
>            Priority: Trivial
>         Attachments: SOLR-2636
> If you do a negative only query, such as -author:[* TO *], explain returns NaN for the
score. The query executes correctly, however.
> To execute negative only queries, Solr calls QueryUtils.makeQueryable, and everything
works correctly. But explain doesn't call this, and coord ends up dividing by zero.
> One could fix this by fixing the call to explain, which is easy, or perhaps by fixing
the query parser to generate the query that way in the first place. (It looks like extended
dismax does the latter, and so shouldn't have problems).

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message