You can wrap each individual match query in a constant score query and place 
them as clauses in a boolean query.

The guide has an example:

http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/ignoring-tfidf.html#constant-score-query

Cheers,

Ivan

 Bernhardt Scherer <bernhardt.sche...@project-a.com> wrote:

>Heythere!Ihavesometroublewithbuildingaqueryinelasticsearch..Myrequirementsare:Documentshave4fields:Field_AField_BField_CField_DIwouldliketobuildanabsolutscoring,thatDOESN'Ttaketheelasticsearchscoringintoaccount.Ifthesearchquerymatchesonefield,thenitshouldalwaysgetthesamespecificscore,e.g.:MatchinField_A=4.0MatchinField_B=3.0MatchinField_C=2.0MatchinField_D=1.0Howwouldasearchquerybebuilttomeetthoserequirements?IhavetriedbuildingitwithfunctionscorebutunfortunatelyIcouldn'tgetveryfarwiththepoordocumentationforthatquery...Manythanksinadvance!Best,Bernhardt--YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroupselasticsearchgroup.Tounsubscribefromthisgroupandstopreceivingemailsfromit,sendanemailtoelasticsearch+unsubscr...@googlegroups.com.Toviewthisdiscussiononthewebvisithttps://groups.google.com/d/msgid/elasticsearch/5b420be6-aa85-4b28-bfe2-4b8fcfa6055d%40googlegroups.com.Formoreoptions,visithttps://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/p9r6ltxythoay4klou2hyvvy.1407795264036%40email.android.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to