Yep, that one takes a while to figure out, then
I wind up re-figuring it out every time I have
to change it <G>...

Best
Erick

On Tue, Aug 30, 2011 at 6:36 PM, Alexei Martchenko
<ale...@superdownloads.com.br> wrote:
> Hmmm I believe I discovered the problem.
>
> When you have something like this:
>
> 2<50% 6<-60%
>
> you should read it from right to left and use the word MORE.
>
> MORE THAN SIX clauses, 60% are optional, MORE THAN TWO clauses (and that
> includes 3, 4 and 5 AND 6) half is mandatory.
>
> if you wanna a special rule for 2 terms just add:
>
> 1<1 2<50% 6<-60%
>
> MORE THAN ONE clauses (2) should match 1.
>
> NOW this makes sense!
>
> 2011/8/30 Alexei Martchenko <ale...@superdownloads.com.br>
>
>> Anyone else strugglin' with dismax's MM parameter?
>>
>> We're having a problem here, seems that configs from 3 terms and more are
>> being ignored by solr and it assumes previous configs.
>>
>> if I use <str name="mm">3&lt;1</str> or <str name="mm">3&lt;100%</str> i
>> get the same results for a 3-term query.
>> If i try <str name="mm">4&lt;25%</str> or <str name="mm">4&lt;100%</str> I
>> also get same data for a 4-term query.
>>
>> I'm searching: windows service pack
>> <str name="mm">1&lt;100% 2&lt;50% 3&lt;100%</str> - 13000 results
>> <str name="mm">1&lt;100% 2&lt;50% 3&lt;1</str> - the same 13000 results
>> <str name="mm">1&lt;100% 2&lt;50%</str> - very same 13000 results
>> <str name="mm">1&lt;100% 2&lt;100%</str> - 93 results. seems that here i
>> get the 3<3 clause working.
>> <str name="mm">2&lt;100%</str> - same 93 results, just in case.
>> <str name="mm">2&lt;50%</str> - very same 13000 results as it should
>> <str name="mm">2&lt;-50%</str> - 1121 results (weird)
>>
>> then i tried to control 3-term queries.
>>
>> <str name="mm">2&lt;-50% 3&lt;100%</str> 1121, the same as 2<-50%, ignoring
>> the 3 clause.
>> <str name="mm">2&lt;-50% 3&lt;1</str> the same 1121 results, ignoring again
>> it.
>>
>> I'd like to accomplish something like this:
>> <str name="mm">2&lt;1 3&lt;2 4&lt;3 8&lt;-50%</str>
>>
>> translating: 1 or 2 -> 1 term, 3 at least 2, 4 at least 3 and 5, 6, 7, 8
>> terms at least half rounded up (5->3, 6->3, 7->4, 8->4)
>>
>> seems that he's only using 1 and 2 clauses.
>>
>> thanks in advance
>>
>> alexei
>>
>
>
>
> --
>
> *Alexei Martchenko* | *CEO* | Superdownloads
> ale...@superdownloads.com.br | ale...@martchenko.com.br | (11)
> 5083.1018/5080.3535/5080.3533
>

Reply via email to