lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <>
Subject [jira] [Commented] (SOLR-2136) Function Queries: if() function
Date Mon, 13 Jun 2011 16:41:51 GMT


Koji Sekiguchi commented on SOLR-2136:

I've met a strange behavior. With empty index, start example solr. Then hit:


you got an empty xml as expected. Then hit the above URL again, you got the following exception:

SEVERE: java.lang.ClassCastException:$60$1 cannot
be cast to
	at java.util.HashMap.getEntry(
	at java.util.LinkedHashMap.get(
	at org.apache.solr.handler.component.QueryComponent.process(
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(
	at org.apache.solr.core.SolrCore.execute(
	at org.apache.solr.servlet.SolrDispatchFilter.execute(
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.mortbay.jetty.servlet.ServletHandler.handle(
	at org.mortbay.jetty.servlet.SessionHandler.handle(
	at org.mortbay.jetty.handler.ContextHandler.handle(
	at org.mortbay.jetty.webapp.WebAppContext.handle(
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
	at org.mortbay.jetty.handler.HandlerCollection.handle(
	at org.mortbay.jetty.handler.HandlerWrapper.handle(
	at org.mortbay.jetty.Server.handle(
	at org.mortbay.jetty.HttpConnection.handleRequest(
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
	at org.mortbay.jetty.HttpParser.parseNext(
	at org.mortbay.jetty.HttpParser.parseAvailable(
	at org.mortbay.jetty.HttpConnection.handle(
	at org.mortbay.thread.QueuedThreadPool$

> Function Queries: if() function
> -------------------------------
>                 Key: SOLR-2136
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.4.1
>            Reporter: Jan H√łydahl
>             Fix For: 4.0
>         Attachments: SOLR-2136.patch, SOLR-2136.patch
> Add an if() function which will enable conditional function queries.
> The function could be modeled after a spreadsheet if function (e.g:
> IF(test; value1; value2) where:
>     test is or refers to a logical value or expression that returns a logical value (TRUE
or FALSE).
>     value1 is the value that is returned by the function if test yields TRUE.
>     value2 is the value that is returned by the function if test yields FALSE.
> If value2 is omitted it is assumed to be FALSE; if value1 is also omitted it is assumed
to be TRUE.
> Example use:
> if(color=="red"; 100; if(color=="green"; 50; 25))
> This function will check the document field "color", and if it is "red" return 100, if
it is "green" return 50, else return 25.

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