Custom score with multiple query

How to calculate a custom score which is kind of a formula that combines
scores from multiple queries. Each such query itself might have a custom
score script inside it. A short example will be great for explanation.

--

On Thursday, 30 August 2012 17:31:42 UTC+5:30, Atharva Patel wrote:

How to calculate a custom score which is kind of a formula that combines
scores from multiple queries. Each such query itself might have a custom
score script inside it. A short example will be great for explanation.

--

For example I want to find a score something like finalscore =
0.4customquery1 + 0.6customquery2;
How to achieve this with elasticsearch API?

On Thursday, 30 August 2012 17:31:42 UTC+5:30, Atharva Patel wrote:

How to calculate a custom score which is kind of a formula that combines
scores from multiple queries. Each such query itself might have a custom
score script inside it. A short example will be great for explanation.

--

The word to search for on the ES website is boost. The simplest was to
combine queries is to use a boolean query called a boolQuery in ES.

-Paul
On 8/30/2012 5:20 AM, Atharva Patel wrote:

For example I want to find a score something like finalscore =
0.4customquery1 + 0.6customquery2;
How to achieve this with elasticsearch API?

--