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.
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
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
the input
string 'dateDeboost()') you didn't specify any arguments at all - let
alone an input argument that could be evaluated as a nested ValueSource.
: Date: Mon, 25 Nov 2013 02:11:43 -0800 (PST)
: From: sling
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apa
hi,
I am working with solr4.1.
When I don't parseValueSource, my function query works well. The code is
like this:
public class DateSourceParser extends ValueSourceParser {
@Override
public void init(NamedList namedList) {
}
@Override
*public ValueSource pars