It was not matching the results for that particular field
below is the debug data

(+DisjunctionMaxQuery((((nameSearchNoSyn:7 nameSearchNoSyn:armour)~2)^9.0 |
((brandSearch:7 brandSearch:armour)~2) | ((nameSearch:7
nameSearch:armour)~2)^4.0 | (keywords:7 armour)^11.0 | ((descSearchNoSyn:7
descSearchNoSyn:armour)~2)^2.0 | ((Synonym(brandSearchQueryShingle:7
brandSearchQueryShingle:7armour) brandSearchQueryShingle:armour)~2)^10.0 |
((descriptionSearch:7 descriptionSearch:armour)~2) | (categoryKeywords:7
armour)^11.0)) DisjunctionMaxQuery(((nameSearch:"7 armour"~5)^9.0 |
(brandSearch:"7 armour"~5)^8.0 | (descriptionSearch:"7 armour"~5)^2.0))
DisjunctionMaxQuery(((nameSearch:"7 armour")^9.0 | (descriptionSearch:"7
armour")^2.0)))/no_coord
</str>
<str name="parsedquery_toString">
+(((nameSearchNoSyn:7 nameSearchNoSyn:armour)~2)^9.0 | ((brandSearch:7
brandSearch:armour)~2) | ((nameSearch:7 nameSearch:armour)~2)^4.0 |
(keywords:7 armour)^11.0 | ((descSearchNoSyn:7
descSearchNoSyn:armour)~2)^2.0 | ((Synonym(brandSearchQueryShingle:7
brandSearchQueryShingle:7armour) brandSearchQueryShingle:armour)~2)^10.0 |
((descriptionSearch:7 descriptionSearch:armour)~2) | (categoryKeywords:7
armour)^11.0) ((nameSearch:"7 armour"~5)^9.0 | (brandSearch:"7
armour"~5)^8.0 | (descriptionSearch:"7 armour"~5)^2.0) ((nameSearch:"7
armour")^9.0 | (descriptionSearch:"7 armour")^2.0)
</str>
<lst name="explain">
<str name="MTA-0114843">
231.43768 = sum of: 122.80731 = max of: 122.80731 = sum of: 39.3418 =
weight(nameSearchNoSyn:7 in 11675) [SchemaSimilarity], result of: 39.3418 =
score(doc=11675,freq=1.0 = termFreq=1.0 ), product of: 9.0 = boost
3.6432905 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq
+ 0.5)) from: 38829.0 = docFreq 1483961.0 = docCount 1.199825 = tfNorm,
computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength /
avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1 0.75 =
parameter b 11.993984 = avgFieldLength 7.111111 = fieldLength 83.465515 =
weight(nameSearchNoSyn:armour in 11675) [SchemaSimilarity], result of:
83.465515 = score(doc=11675,freq=1.0 = termFreq=1.0 ), product of: 9.0 =
boost 7.729415 = idf, computed as log(1 + (docCount - docFreq + 0.5) /
(docFreq + 0.5)) from: 652.0 = docFreq 1483961.0 = docCount 1.199825 =
tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b *
fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1
0.75 = parameter b 11.993984 = avgFieldLength 7.111111 = fieldLength
10.923981 = sum of: 5.468917 = weight(brandSearch:7 in 11675)
[SchemaSimilarity], result of: 5.468917 = score(doc=11675,freq=1.0 =
termFreq=1.0 ), product of: 7.810959 = idf, computed as log(1 + (docCount -
docFreq + 0.5) / (docFreq + 0.5)) from: 600.0 = docFreq 1481730.0 =
docCount 0.7001595 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 *
(1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 =
parameter k1 0.75 = parameter b 1.2507185 = avgFieldLength 2.56 =
fieldLength 5.4550633 = weight(brandSearch:armour in 11675)
[SchemaSimilarity], result of: 5.4550633 = score(doc=11675,freq=1.0 =
termFreq=1.0 ), product of: 7.7911725 = idf, computed as log(1 + (docCount
- docFreq + 0.5) / (docFreq + 0.5)) from: 612.0 = docFreq 1481730.0 =
docCount 0.7001595 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 *
(1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 =
parameter k1 0.75 = parameter b 1.2507185 = avgFieldLength 2.56 =
fieldLength 54.581028 = sum of: 17.485245 = weight(nameSearch:7 in 11675)
[SchemaSimilarity], result of: 17.485245 = score(doc=11675,freq=1.0 =
termFreq=1.0 ), product of: 4.0 = boost 3.6432905 = idf, computed as log(1
+ (docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 38829.0 = docFreq
1483961.0 = docCount 1.199825 = tfNorm, computed as (freq * (k1 + 1)) /
(freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from: 1.0 =
termFreq=1.0 1.2 = parameter k1 0.75 = parameter b 11.993984 =
avgFieldLength 7.111111 = fieldLength 37.095783 = weight(nameSearch:armour
in 11675) [SchemaSimilarity], result of: 37.095783 =
score(doc=11675,freq=1.0 = termFreq=1.0 ), product of: 4.0 = boost 7.729415
= idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5))
from: 652.0 = docFreq 1483961.0 = docCount 1.199825 = tfNorm, computed as
(freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength /
avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1 0.75 =
parameter b 11.993984 = avgFieldLength 7.111111 = fieldLength 22.929073 =
sum of: 6.5367765 = weight(descSearchNoSyn:7 in 11675) [SchemaSimilarity],
result of: 6.5367765 = score(doc=11675,freq=2.0 = termFreq=2.0 ), product
of: 2.0 = boost 2.2815151 = idf, computed as log(1 + (docCount - docFreq +
0.5) / (docFreq + 0.5)) from: 151552.0 = docFreq 1483926.0 = docCount
1.4325516 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b
* fieldLength / avgFieldLength)) from: 2.0 = termFreq=2.0 1.2 = parameter
k1 0.75 = parameter b 97.52203 = avgFieldLength 83.591835 = fieldLength
16.392298 = weight(descSearchNoSyn:armour in 11675) [SchemaSimilarity],
result of: 16.392298 = score(doc=11675,freq=1.0 = termFreq=1.0 ), product
of: 2.0 = boost 7.7172055 = idf, computed as log(1 + (docCount - docFreq +
0.5) / (docFreq + 0.5)) from: 660.0 = docFreq 1483926.0 = docCount
1.0620618 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b
* fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter
k1 0.75 = parameter b 97.52203 = avgFieldLength 83.591835 = fieldLength
11.464537 = sum of: 3.2683883 = weight(descriptionSearch:7 in 11675)
[SchemaSimilarity], result of: 3.2683883 = score(doc=11675,freq=2.0 =
termFreq=2.0 ), product of: 2.2815151 = idf, computed as log(1 + (docCount
- docFreq + 0.5) / (docFreq + 0.5)) from: 151552.0 = docFreq 1483926.0 =
docCount 1.4325516 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 *
(1 - b + b * fieldLength / avgFieldLength)) from: 2.0 = termFreq=2.0 1.2 =
parameter k1 0.75 = parameter b 97.52203 = avgFieldLength 83.591835 =
fieldLength 8.196149 = weight(descriptionSearch:armour in 11675)
[SchemaSimilarity], result of: 8.196149 = score(doc=11675,freq=1.0 =
termFreq=1.0 ), product of: 7.7172055 = idf, computed as log(1 + (docCount
- docFreq + 0.5) / (docFreq + 0.5)) from: 660.0 = docFreq 1483926.0 =
docCount 1.0620618 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 *
(1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 =
parameter k1 0.75 = parameter b 97.52203 = avgFieldLength 83.591835 =
fieldLength 87.39184 = max of: 87.39184 = weight(brandSearch:"7 armour"~5
in 11675) [SchemaSimilarity], result of: 87.39184 =
score(doc=11675,freq=1.0 = phraseFreq=1.0 ), product of: 8.0 = boost
15.602131 = idf(), sum of: 7.810959 = idf, computed as log(1 + (docCount -
docFreq + 0.5) / (docFreq + 0.5)) from: 600.0 = docFreq 1481730.0 =
docCount 7.7911725 = idf, computed as log(1 + (docCount - docFreq + 0.5) /
(docFreq + 0.5)) from: 612.0 = docFreq 1481730.0 = docCount 0.7001595 =
tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b *
fieldLength / avgFieldLength)) from: 1.0 = phraseFreq=1.0 1.2 = parameter
k1 0.75 = parameter b 1.2507185 = avgFieldLength 2.56 = fieldLength
21.238518 = weight(descriptionSearch:"7 armour"~5 in 11675)
[SchemaSimilarity], result of: 21.238518 = score(doc=11675,freq=1.0 =
phraseFreq=1.0 ), product of: 2.0 = boost 9.99872 = idf(), sum of:
2.2815151 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq
+ 0.5)) from: 151552.0 = docFreq 1483926.0 = docCount 7.7172055 = idf,
computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:
660.0 = docFreq 1483926.0 = docCount 1.0620618 = tfNorm, computed as (freq
* (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength))
from: 1.0 = phraseFreq=1.0 1.2 = parameter k1 0.75 = parameter b 97.52203 =
avgFieldLength 83.591835 = fieldLength 21.238518 = max of: 21.238518 =
weight(descriptionSearch:"7 armour" in 11675) [SchemaSimilarity], result
of: 21.238518 = score(doc=11675,freq=1.0 = phraseFreq=1.0 ), product of:
2.0 = boost 9.99872 = idf(), sum of: 2.2815151 = idf, computed as log(1 +
(docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 151552.0 = docFreq
1483926.0 = docCount 7.7172055 = idf, computed as log(1 + (docCount -
docFreq + 0.5) / (docFreq + 0.5)) from: 660.0 = docFreq 1483926.0 =
docCount 1.0620618 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 *
(1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = phraseFreq=1.0 1.2
= parameter k1 0.75 = parameter b 97.52203 = avgFieldLength 83.591835 =
fieldLength
</str>



On Tue, Jun 20, 2017 at 7:33 PM alessandro.benedetti <a.benede...@sease.io>
wrote:

> Interesting.
> it seems almost correct to me.
> Have you explored the content of the field ( for example using the schema
> browser) ?
> When you say " don't match" it means you don't get results at all or just
> the boost is not applied ?
> I would recommend to simply the request handler, maybe just introducing a
> piece step by step and verifying you are getting what you want.
>
> Regards
>
>
>
> -----
> ---------------
> Alessandro Benedetti
> Search Consultant, R&D Software Engineer, Director
> Sease Ltd. - www.sease.io
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Give-boost-only-if-entire-value-is-present-in-Query-tp4341714p4341951.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to