Re: Boost query syntax error

2014-03-03 Thread Arun Rangarajan
All of them work like a charm! Thanks, Chris. On Mon, Mar 3, 2014 at 1:28 PM, Chris Hostetter wrote: > > : But this query does not work: > : > : q={!boost > : b=if(exists(query({!v='user_type:ADMIN'})),10,1)}id:1&rows=1&fl=*,score > : It gives an error like this: > > The problem is the way you a

Re: Boost query syntax error

2014-03-03 Thread Chris Hostetter
: But this query does not work: : : q={!boost : b=if(exists(query({!v='user_type:ADMIN'})),10,1)}id:1&rows=1&fl=*,score : It gives an error like this: The problem is the way you are trying to nest queries inside of each other w/o any sort of quoting -- the parser has no indication that the "b"

Boost query syntax error

2014-02-28 Thread Arun Rangarajan
The Solr function query documentation ( https://wiki.apache.org/solr/FunctionQuery#exists) says: exists(query({!v='year:2012'})) will return true for docs with year=2012 I have a document like: { id: 1, user_type: ADMIN, like_score: 1 } id, user_type and like_score are all indexed and stor