What should be defined inside the function , any example queries. could not
find one on elastic search page.this throws a exception No query
registered for [function_score]]
{
"query":{
"function_score":{
"query":{
"match":{
"programs":"computer science"
}
},
"functions":[
{
"filter":{
"range":{
"tution":{
"from":10000,
"to":20000
}
}
},
"FUNCTION":{
"boost": "3"
}
}
],
"score_mode":"avg",
"boost_mode":"avg"
}
}
}
you need to use one of the score functions mentioned in
So either script_score, boost factor, random or one of the decay
functions.. the error message is also telling you not to forget the query
field inside of the function score.
What should be defined inside the function , any example queries. could
not find one on Elasticsearch page.this throws a exception No query
registered for [function_score]]
{
"query":{
"function_score":{
"query":{
"match":{
"programs":"computer science"
}
},
"functions":[
{
"filter":{
"range":{
"tution":{
"from":10000,
"to":20000
}
}
},
"FUNCTION":{
"boost": "3"
}
}
],
"score_mode":"avg",
"boost_mode":"avg"
}
}
}
So either script_score, boost factor, random or one of the decay
functions.. the error message is also telling you not to forget the query
field inside of the function score.
What should be defined inside the function , any example queries. could
not find one on Elasticsearch page.this throws a exception No query
registered for [function_score]]
{
"query":{
"function_score":{
"query":{
"match":{
"programs":"computer science"
}
},
"functions":[
{
"filter":{
"range":{
"tution":{
"from":10000,
"to":20000
}
}
},
"FUNCTION":{
"boost": "3"
}
}
],
"score_mode":"avg",
"boost_mode":"avg"
}
}
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
hi Alex i tried as suggested but it seams i am still missing something ,
when i tried the query below i still get No query registered for
[function_score]] exception
So either script_score, boost factor, random or one of the decay
functions.. the error message is also telling you not to forget the query
field inside of the function score.
--Alex
On Fri, Nov 22, 2013 at 9:31 AM, paul <avinas...@gmail.com <javascript:>>wrote:
What should be defined inside the function , any example queries. could
not find one on Elasticsearch page.this throws a exception No query
registered for [function_score]]
{
"query":{
"function_score":{
"query":{
"match":{
"programs":"computer science"
}
},
"functions":[
{
"filter":{
"range":{
"tution":{
"from":10000,
"to":20000
}
}
},
"FUNCTION":{
"boost": "3"
}
}
],
"score_mode":"avg",
"boost_mode":"avg"
}
}
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Hey I realize this is an old thread, but just in case anyone else has this
problem, it's almost definitely a versioning issue... updating to 0.90.10
solved it for me.
On Friday, November 22, 2013 4:37:40 AM UTC-5, paul wrote:
hi Alex i tried as suggested but it seams i am still missing something ,
when i tried the query below i still get No query registered for
[function_score]] exception
So either script_score, boost factor, random or one of the decay
functions.. the error message is also telling you not to forget the query
field inside of the function score.
What should be defined inside the function , any example queries. could
not find one on Elasticsearch page.this throws a exception No query
registered for [function_score]]
{
"query":{
"function_score":{
"query":{
"match":{
"programs":"computer science"
}
},
"functions":[
{
"filter":{
"range":{
"tution":{
"from":10000,
"to":20000
}
}
},
"FUNCTION":{
"boost": "3"
}
}
],
"score_mode":"avg",
"boost_mode":"avg"
}
}
}
Hey I realize this is an old thread, but just in case anyone else has this
problem, it's almost definitely a versioning issue... updating to 0.90.10
solved it for me.
On Friday, November 22, 2013 4:37:40 AM UTC-5, paul wrote:
hi Alex i tried as suggested but it seams i am still missing something ,
when i tried the query below i still get No query registered for
[function_score]] exception
So either script_score, boost factor, random or one of the decay
functions.. the error message is also telling you not to forget the query
field inside of the function score.
What should be defined inside the function , any example queries. could
not find one on Elasticsearch page.this throws a exception No query
registered for [function_score]]
{
"query":{
"function_score":{
"query":{
"match":{
"programs":"computer science"
}
},
"functions":[
{
"filter":{
"range":{
"tution":{
"from":10000,
"to":20000
}
}
},
"FUNCTION":{
"boost": "3"
}
}
],
"score_mode":"avg",
"boost_mode":"avg"
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.