lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-5524) Exception when using Query Function inside Scale Function
Date Tue, 03 Dec 2013 14:05:36 GMT

    [ https://issues.apache.org/jira/browse/SOLR-5524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837713#comment-13837713
] 

Yonik Seeley commented on SOLR-5524:
------------------------------------

bq. Is there really a reason the key needs to be an object? Why not just a string like "scaleInfo"?

Two different scale functions in a single function query would then clash.

> Exception when using Query Function inside Scale Function
> ---------------------------------------------------------
>
>                 Key: SOLR-5524
>                 URL: https://issues.apache.org/jira/browse/SOLR-5524
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.6
>            Reporter: Trey Grainger
>            Priority: Minor
>             Fix For: 4.7
>
>         Attachments: SOLR-5524.patch
>
>
> If you try to use the query function inside the scale function, it throws the following
exception:
> org.apache.lucene.search.BooleanQuery$BooleanWeight cannot be cast to
> org.apache.lucene.queries.function.valuesource.ScaleFloatFunction$ScaleInfo
> Here is an example request that invokes this:
> http://localhost:8983/solr/collection1/select?q=*:*&fl=scale(query($x),0,5)&x=hello)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message