: ((attr_search:8 attr_search:gb)~2^5.0)
: 
: I hope to be right, but I expect to find a boost in both the values
: matches.

1) "boost" information should show up as a detail of the "queryWeight", 
which is itself a detail of the "weight" of term clauses -- in the output 
you've included below, you've replaced those details with "..." so it's 
not clear if they are missing or not.

2) the query syntax you posted, as far as i know, is not a valid syntax 
for any of the parsers Solr ships with out of the box -- for the default 
parser it produces a syntax error, for parsers like dismax and edismax i'm 
fairly certain what you are getting is a query for the term "2" that has a 
boost of 5.0 on it.  hard to be sure since you didn't give us the full 
details of your request/config...

3) based on the output you provided, you are using a custom 
"EpriceSimilarity" similarity class ... custom similarities are heavily 
involved in both the score, and score explaination generation -- so even 
if the query syntax is valid, and meaningful for whatever query parser you 
are using, it's possible that the EpriceSimilarity is doing something odd 
with that boost info at query time.




: Now, I don't understand why, even if both the terms matches, I don't see
: the boost in the explain.
: 
: <lst>
: <bool name="match">true</bool>
: <float name="value">0.10516781</float>
: <str name="description">sum of:</str>
: <arr name="details">
: <lst>
: <bool name="match">true</bool>
: <float name="value">0.06489531</float>
: <str name="description">
: weight(attr_search:8 in 927) [EpriceSimilarity], result of:
: </str>
: <arr name="details">...</arr>
: </lst>
: <lst>
: <bool name="match">true</bool>
: <float name="value">0.040272504</float>
: <str name="description">
: weight(attr_search:gb in 927) [EpriceSimilarity], result of:
: </str>
: <arr name="details">...</arr>
: </lst>
: </arr>
: </lst>
: 
: I suppose to find something like: attr_search:8^5 and attr_search:gb^5 in
: the explain.
: or something that tells I have both the matches so there is a boost
: somewhere.
: What's wrong in my assumption? What's I'm missing?
: 
: 
: -- 
: Vincenzo D'Amore
: email: v.dam...@gmail.com
: skype: free.dev
: mobile: +39 349 8513251
: 

-Hoss
http://www.lucidworks.com/

Reply via email to