Boosting results with Custom Filter Score and filter boost problem

Hi,

We are trying to use Elastic Search to replace FAST.

We currently use FAST XRanks to apply relevancy to out search results and
am trying to switch it to Elastic. I am not sure what the problem is but
when using Custom Filter Score with Boosts on the Filters and a Score Mode
of "total" we are getting very different results with the equivalent
Elastic query / Boost values. Can anyone help out?

Maybe my understanding of the score mode "total" is not correct but I
thought it would get the search results based on the query, apply the
filters on each result item and sum up all boosts on the matching filters
and then order descending on the score is that correct?

Below is the query we are using. The problem seems to be with the float
range filters (priceToAveragePriceRatio, kmsToAverageKmsRatio) since the
results do not seem to get boosted correctly on these on these (but I could
be wrong).

{
"from": 0,
"size": 10,
"sort": {
"_score": {
"order": "desc"
}
},
"query": {
"custom_filters_score": {
"query": {
"bool": {
"should": [
{
"match": {
"usedNature": {
"type": "phrase",
"query": "Ex Demo Cars"
}
}
},
{
"match": {
"usedNature": {
"type": "phrase",
"query": "New Cars In Stock"
}
}
},
{
"match": {
"usedNature": {
"type": "phrase",
"query": "New Cars"
}
}
},
{
"match": {
"usedNature": {
"type": "phrase",
"query": "Used Cars"
}
}
}
]
}
},
"filters": [
{
"filter": {
"range": {
"carInformation.priceToAveragePriceRatio": {
"from": 0.7,
"to": 1.01
}
}
},
"boost": 500
},
{
"filter": {
"range": {
"carInformation.kmsToAverageKmsRatio": {
"from": 0.7,
"to": 1.1
}
}
},
"boost": 500
},
{
"filter": {
"range": {
"publishedDateTime": {
"from": "2013-06-30T23:22:16"
}
}
},
"boost": 700
},
{
"filter": {
"term": {
"enhancedListing": "1"
}
},
"boost": 9999
},
{
"filter": {
"range": {
"imageCount": {
"from": 8
}
}
},
"boost": 800
},
{
"filter": {
"range": {
"carInformation.nvicCount": {
"from": 1,
"to": 1
}
}
},
"boost": 600
},
{
"filter": {
"range": {
"imageCount": {
"from": 4,
"to": 7
}
}
},
"boost": 500
},
{
"filter": {
"term": {
"carInformation.hasOdometer": "1"
}
},
"boost": 100
},
{
"filter": {
"term": {
"carInformation.hasColour": "1"
}
},
"boost": 100
},
{
"filter": {
"term": {
"price.isPoaPrice": "0"
}
},
"boost": 200
},
{
"filter": {
"range": {
"imageCount": {
"from": 3,
"to": 5
}
}
},
"boost": 300
},
{
"filter": {
"range": {
"descriptionLength": {
"from": 100
}
}
},
"boost": 150
},
{
"filter": {
"range": {
"featureLength": {
"from": 100
}
}
},
"boost": 150
},
{
"filter": {
"term": {
"sourceSiteId": "3"
}
},
"boost": 2000
},
{
"filter": {
"term": {
"sourceSiteId": "1"
}
},
"boost": 5000
},
{
"filter": {
"prefix": {
"usedNature": "New Cars"
}
},
"boost": 1000
}
],
"score_mode": "total"
}
}
}

--
The information contained in this e-mail message and any accompanying files
is or may be confidential. If you are not the intended recipient, any use,
dissemination, reliance, forwarding, printing or copying of this e-mail or
any attached files is unauthorised. This e-mail is subject to copyright. No
part of it should be reproduced, adapted or communicated without the
written consent of the copyright owner. If you have received this e-mail in
error please advise the sender immediately by return e-mail or telephone
and delete all copies. Fairfax Media does not guarantee the accuracy or
completeness of any information contained in this e-mail or attached files.
Internet communications are not secure, therefore Fairfax Media does not
accept legal responsibility for the contents of this message or attached
files.

--
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.