First, that works as "bf".

I got the syntax from: 
http://lucidworks.lucidimagination.com/display/solr/Function+Queries

Various documentation has different syntax for exists().

wunder

On Jan 16, 2013, at 3:00 PM, Jack Krupansky wrote:

> Maybe it's the semicolons in the "if", which should be commas. Also, you're 
> using some odd syntax in the "exists" value data source which expects a field 
> name or a function.
> 
> -- Jack Krupansky
> 
> -----Original Message----- From: Walter Underwood
> Sent: Wednesday, January 16, 2013 1:28 PM
> To: solr-user@lucene.apache.org
> Subject: 400 error with boost and exists()
> 
> We're running Solr 3.3 and I have a function query for boosting that works 
> with bq but not with boost (edismax). This is the same behavior described 
> here:
> 
> http://stackoverflow.com/questions/12128561/why-doesnt-solr-function-query-work-with-boost-parameter
> 
> Here is the first part of the stack trace:
> 
> null java.lang.UnsupportedOperationException at 
> org.apache.solr.search.function.DocValues.floatVal(DocValues.java:41) at 
> org.apache.solr.search.function.BoostedQuery$CustomScorer.score(BoostedQuery.java:167)
>  at 
> org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)
>  at org.apache.lucene.search.Scorer.score(Scorer.java:90) at 
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526) at 
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320) at 
> org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178)
>  at 
> org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066)
>  at
> ...
> 
> I'm passing in this function query. The first term in the product() is set as 
> a default in the request handler for boost.
> 
> "product(log(max(demand_chegg_rolling,1)),if(exists('school'='1579535');5;1))"
> 
> I did not find a Jira item that matched this. Any hints on what is going on?
> 
> wunder
> --
> Walter Underwood
> wun...@wunderwood.org
> 
> 

--
Walter Underwood
wun...@wunderwood.org



Reply via email to