Query Help

Is it possible to create a query which searches for different words in
different properties of a document but gives a constant score irrelevant of
where it was found. Basically i want to create something similar to this,
but i can't find any similar examples

"constant_score" :
{
"text":{
"WorkExperience.Title":{
"boost":18,
"query":"developer",
"type":"phrase"
}
},
{
"text":{
"Course.Occupation":{
"boost":18,
"query":"developer",
"type":"phrase"
}
}
},
"score":1
}

"constant_score" :
{
{
"text":{
"WorkExperience.Title":{
"boost":16,
"query":"engineer",
"type":"phrase"
}
},
"text":{
"Project.Occupation":{
"boost":16,
"query":"engineer",
"type":"phrase"
}
}
},
"score":1
}

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

To add some more feedback i added some more info below

{
"bool" : {
"should" : [
"constant_score" :
{
"text":{
"WorkExperience.Title":{
"query":"developer",
"type":"phrase"
}
},
{
"text":{
"Course.Occupation":{
"query":"developer",
"type":"phrase"
}
}
},
"boost" : 1.2
},
"constant_score" :
{
{
"match":{
"WorkExperience.Title":{
"query":"engineer",
"type":"phrase"
}
},
"match":{
"Project.Occupation":{
"query":"engineer",
"type":"phrase"
}
}
},
"boost" : 1.2
}
]
}
}

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Found the solution dis_max

On Friday, 15 February 2013 17:15:57 UTC+1, Shawn Ritchie wrote:

Is it possible to create a query which searches for different words in
different properties of a document but gives a constant score irrelevant of
where it was found. Basically i want to create something similar to this,
but i can't find any similar examples

"constant_score" :
{
"text":{
"WorkExperience.Title":{
"boost":18,
"query":"developer",
"type":"phrase"
}
},
{
"text":{
"Course.Occupation":{
"boost":18,
"query":"developer",
"type":"phrase"
}
}
},
"score":1
}

"constant_score" :
{
{
"text":{
"WorkExperience.Title":{
"boost":16,
"query":"engineer",
"type":"phrase"
}
},
"text":{
"Project.Occupation":{
"boost":16,
"query":"engineer",
"type":"phrase"
}
}
},
"score":1
}

--
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.
For more options, visit https://groups.google.com/groups/opt_out.