Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-26 Thread sling
Thank you, kydryavtsev andrey! You give me the right solution. -- View this message in context: http://lucene.472066.n3.nabble.com/In-a-functon-query-I-can-t-get-the-ValueSource-when-extend-ValueSourceParser-tp4103026p4103449.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-26 Thread kydryavtsev andrey
As your DateSourceParser is put in standardValueSourceParsers map with key "dateDeboost" (right?), I think you need specify name of your source like "dateDeboost(title)". 26.11.2013, 06:46, "sling" : > Thanks a lot for your reply, Chris. > > I was trying to sort the query result by the Datefunc

Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-25 Thread sling
Thanks a lot for your reply, Chris. I was trying to sort the query result by the Datefunction, by passing q={!boost b=dateDeboost()}title:test to the /select request-handler. Before, my custom DateFunction is like this: public class DateFunction extends FieldCacheSource { private static f

Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-25 Thread Chris Hostetter
I'm not sure i understand your question - largely because you've only provided a small sample of information aboutwhat you are doing, and not giving a full picture. what are you actually trying to accomplish? With your custom ValueSourceParser, what input are you sending to solr that generat