Hi,
I'm playing around with sorting via functionqueries, and I've set _val_
to the following:
sum(product(always_on_top,5),recip(rord(publication_date),1,1000,1000))
Where the field always_on_top is a simple boolean field, where documents
with always_on_top:true should always be on top. I ran into a problem
where one of the documents with always_on_top = true was all the way on
the bottom instead of on top. So I extracted the query out of my system
en copied it to my browser and added &debugQuery=true which gave a
NullPointerException. After some searching I found out the document in
question had no publication_date field set (which is totally my fault)
however it took quite a while to discover this since I couldn't turn on
debugQuery. Is this a bug or expected behviour?
Regards,
gwk