I changed my boost-function log(clickrate)^8 to div(clciks,displays)^8 and
it works now. I get the following output from debug

0.0022668892 = (MATCH) FunctionQuery(div(const(2),const(5))), product of:
    0.4 = div(const(2),const(5))
    8.0 = boost
    7.0840283E-4 = queryNorm

Am i undestanding this right, that 0.4 and 8.0 result in 7.084....? I'm
having trouble undestanding how much i boosted it.

As i use NgramFilterFactory i get a lot of hits because of the tokens. Can i
make the boost higher if the hole search-term is found and not just part of
it?


-----Original Message-----
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Mittwoch, 4. Dezember 2013 15:07
To: solr-user@lucene.apache.org
Subject: Re: json update moves doc to end

Well, both have a score of -Infinity. So they're "equal" and the tiebreaker
is the internal Lucene doc ID.

Now this is not helpful since the question now is where -Infinity comes
from, this looks suspicious:
 -Infinity = (MATCH) FunctionQuery(log(int(clicks))), product of:
    -Infinity = log(int(clicks)=0)

not much help I know, but....

Erick


On Wed, Dec 4, 2013 at 7:24 AM, Andreas Owen <a...@conx.ch> wrote:

> Hi Erick
>
> Here are the last 2 results from a search and i am not understanding 
> why the last one with the boost editorschoice^200 isn't at the top. By 
> the way can i also give a substantial boost to results that contain 
> the hole search-request and not just 3 or 4 letters (tokens)?
>
> <str name="dms:1003">
> -Infinity = (MATCH) sum of:
>   0.013719446 = (MATCH) max of:
>     0.013719446 = (MATCH) sum of:
>       2.090396E-4 = (MATCH) weight(plain_text:ber in 841) 
> [DefaultSimilarity], result of:
>         2.090396E-4 = score(doc=841,freq=8.0 = termFreq=8.0 ), product 
> of:
>           0.009452709 = queryWeight, product of:
>             1.3343692 = idf(docFreq=611, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.022114253 = fieldWeight in 841, product of:
>             2.828427 = tf(freq=8.0), with freq of:
>               8.0 = termFreq=8.0
>             1.3343692 = idf(docFreq=611, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0012402858 = (MATCH) weight(plain_text:eri in 841) 
> [DefaultSimilarity], result of:
>         0.0012402858 = score(doc=841,freq=9.0 = termFreq=9.0 ), 
> product of:
>           0.022357063 = queryWeight, product of:
>             3.1559815 = idf(docFreq=98, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.05547624 = fieldWeight in 841, product of:
>             3.0 = tf(freq=9.0), with freq of:
>               9.0 = termFreq=9.0
>             3.1559815 = idf(docFreq=98, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       5.0511415E-4 = (MATCH) weight(plain_text:ric in 841) 
> [DefaultSimilarity], result of:
>         5.0511415E-4 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.024712078 = queryWeight, product of:
>             3.4884217 = idf(docFreq=70, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.020439971 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.4884217 = idf(docFreq=70, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       8.721528E-4 = (MATCH) weight(plain_text:ich in 841) 
> [DefaultSimilarity], result of:
>         8.721528E-4 = score(doc=841,freq=12.0 = termFreq=12.0 ), 
> product of:
>           0.017446788 = queryWeight, product of:
>             2.4628344 = idf(docFreq=197, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.049989305 = fieldWeight in 841, product of:
>             3.4641016 = tf(freq=12.0), with freq of:
>               12.0 = termFreq=12.0
>             2.4628344 = idf(docFreq=197, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       7.725705E-4 = (MATCH) weight(plain_text:cht in 841) 
> [DefaultSimilarity], result of:
>         7.725705E-4 = score(doc=841,freq=4.0 = termFreq=4.0 ), product 
> of:
>           0.021610687 = queryWeight, product of:
>             3.050621 = idf(docFreq=109, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.035749465 = fieldWeight in 841, product of:
>             2.0 = tf(freq=4.0), with freq of:
>               4.0 = termFreq=4.0
>             3.050621 = idf(docFreq=109, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0010287998 = (MATCH) weight(plain_text:beri in 841) 
> [DefaultSimilarity], result of:
>         0.0010287998 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.035267927 = queryWeight, product of:
>             4.978513 = idf(docFreq=15, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.029170973 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             4.978513 = idf(docFreq=15, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0010556461 = (MATCH) weight(plain_text:eric in 841) 
> [DefaultSimilarity], result of:
>         0.0010556461 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.035725117 = queryWeight, product of:
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.02954913 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       5.653785E-4 = (MATCH) weight(plain_text:rich in 841) 
> [DefaultSimilarity], result of:
>         5.653785E-4 = score(doc=841,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.02614473 = queryWeight, product of:
>             3.6906586 = idf(docFreq=57, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.021624953 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.6906586 = idf(docFreq=57, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0010596104 = (MATCH) weight(plain_text:icht in 841) 
> [DefaultSimilarity], result of:
>         0.0010596104 = score(doc=841,freq=3.0 = termFreq=3.0 ), 
> product of:
>           0.027196141 = queryWeight, product of:
>             3.8390784 = idf(docFreq=49, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.03896179 = fieldWeight in 841, product of:
>             1.7320508 = tf(freq=3.0), with freq of:
>               3.0 = termFreq=3.0
>             3.8390784 = idf(docFreq=49, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0011511327 = (MATCH) weight(plain_text:beric in 841) 
> [DefaultSimilarity], result of:
>         0.0011511327 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.037305873 = queryWeight, product of:
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.03085661 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0010556461 = (MATCH) weight(plain_text:erich in 841) 
> [DefaultSimilarity], result of:
>         0.0010556461 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.035725117 = queryWeight, product of:
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.02954913 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       7.8540004E-4 = (MATCH) weight(plain_text:richt in 841) 
> [DefaultSimilarity], result of:
>         7.8540004E-4 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.030814843 = queryWeight, product of:
>             4.349904 = idf(docFreq=29, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.02548772 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             4.349904 = idf(docFreq=29, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0011511327 = (MATCH) weight(plain_text:berich in 841) 
> [DefaultSimilarity], result of:
>         0.0011511327 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.037305873 = queryWeight, product of:
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.03085661 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0011164057 = (MATCH) weight(plain_text:ericht in 841) 
> [DefaultSimilarity], result of:
>         0.0011164057 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.036738846 = queryWeight, product of:
>             5.186152 = idf(docFreq=12, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.03038761 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.186152 = idf(docFreq=12, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>       0.0011511327 = (MATCH) weight(plain_text:bericht in 841) 
> [DefaultSimilarity], result of:
>         0.0011511327 = score(doc=841,freq=1.0 = termFreq=1.0 ), 
> product of:
>           0.037305873 = queryWeight, product of:
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.03085661 = fieldWeight in 841, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.005859375 = fieldNorm(doc=841)
>   0.0021252085 = (MATCH) product of:
>     0.004250417 = (MATCH) sum of:
>       0.004250417 = (MATCH) sum of:
>         0.004250417 = (MATCH) MatchAllDocsQuery, product of:
>           0.004250417 = queryNorm
>     0.5 = coord(1/2)
>   -Infinity = (MATCH) FunctionQuery(log(int(clicks))), product of:
>     -Infinity = log(int(clicks)=0)
>     8.0 = boost
>     7.0840283E-4 = queryNorm
> </str>
>     <str name="intraagenda:632">
> -Infinity = (MATCH) sum of:
>   7.0577774 = (MATCH) max of:
>     0.06057092 = (MATCH) sum of:
>       6.8272045E-4 = (MATCH) weight(plain_text:ber in 0) 
> [DefaultSimilarity], result of:
>         6.8272045E-4 = score(doc=0,freq=3.0 = termFreq=3.0 ), product 
> of:
>           0.009452709 = queryWeight, product of:
>             1.3343692 = idf(docFreq=611, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.07222485 = fieldWeight in 0, product of:
>             1.7320508 = tf(freq=3.0), with freq of:
>               3.0 = termFreq=3.0
>             1.3343692 = idf(docFreq=611, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0022049525 = (MATCH) weight(plain_text:eri in 0) 
> [DefaultSimilarity], result of:
>         0.0022049525 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.022357063 = queryWeight, product of:
>             3.1559815 = idf(docFreq=98, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.09862442 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.1559815 = idf(docFreq=98, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0026939423 = (MATCH) weight(plain_text:ric in 0) 
> [DefaultSimilarity], result of:
>         0.0026939423 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.024712078 = queryWeight, product of:
>             3.4884217 = idf(docFreq=70, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.10901318 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.4884217 = idf(docFreq=70, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0013427672 = (MATCH) weight(plain_text:ich in 0) 
> [DefaultSimilarity], result of:
>         0.0013427672 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.017446788 = queryWeight, product of:
>             2.4628344 = idf(docFreq=197, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.07696357 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             2.4628344 = idf(docFreq=197, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.002060188 = (MATCH) weight(plain_text:cht in 0) 
> [DefaultSimilarity], result of:
>         0.002060188 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.021610687 = queryWeight, product of:
>             3.050621 = idf(docFreq=109, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.09533191 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.050621 = idf(docFreq=109, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.005486932 = (MATCH) weight(plain_text:beri in 0) 
> [DefaultSimilarity], result of:
>         0.005486932 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.035267927 = queryWeight, product of:
>             4.978513 = idf(docFreq=15, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.15557852 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             4.978513 = idf(docFreq=15, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0056301123 = (MATCH) weight(plain_text:eric in 0) 
> [DefaultSimilarity], result of:
>         0.0056301123 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.035725117 = queryWeight, product of:
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.15759535 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0030153522 = (MATCH) weight(plain_text:rich in 0) 
> [DefaultSimilarity], result of:
>         0.0030153522 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.02614473 = queryWeight, product of:
>             3.6906586 = idf(docFreq=57, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.11533308 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.6906586 = idf(docFreq=57, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0032627536 = (MATCH) weight(plain_text:icht in 0) 
> [DefaultSimilarity], result of:
>         0.0032627536 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.027196141 = queryWeight, product of:
>             3.8390784 = idf(docFreq=49, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.1199712 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             3.8390784 = idf(docFreq=49, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.006139375 = (MATCH) weight(plain_text:beric in 0) 
> [DefaultSimilarity], result of:
>         0.006139375 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.037305873 = queryWeight, product of:
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.16456859 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0056301123 = (MATCH) weight(plain_text:erich in 0) 
> [DefaultSimilarity], result of:
>         0.0056301123 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.035725117 = queryWeight, product of:
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.15759535 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.0430512 = idf(docFreq=14, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0041888 = (MATCH) weight(plain_text:richt in 0) 
> [DefaultSimilarity], result of:
>         0.0041888 = score(doc=0,freq=1.0 = termFreq=1.0 ), product of:
>           0.030814843 = queryWeight, product of:
>             4.349904 = idf(docFreq=29, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.1359345 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             4.349904 = idf(docFreq=29, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.006139375 = (MATCH) weight(plain_text:berich in 0) 
> [DefaultSimilarity], result of:
>         0.006139375 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.037305873 = queryWeight, product of:
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.16456859 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.0059541636 = (MATCH) weight(plain_text:ericht in 0) 
> [DefaultSimilarity], result of:
>         0.0059541636 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.036738846 = queryWeight, product of:
>             5.186152 = idf(docFreq=12, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.16206725 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.186152 = idf(docFreq=12, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>       0.006139375 = (MATCH) weight(plain_text:bericht in 0) 
> [DefaultSimilarity], result of:
>         0.006139375 = score(doc=0,freq=1.0 = termFreq=1.0 ), product 
> of:
>           0.037305873 = queryWeight, product of:
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.0070840283 = queryNorm
>           0.16456859 = fieldWeight in 0, product of:
>             1.0 = tf(freq=1.0), with freq of:
>               1.0 = termFreq=1.0
>             5.266195 = idf(docFreq=11, maxDocs=855)
>             0.03125 = fieldNorm(doc=0)
>     7.0577774 = (MATCH) weight(editorschoice:bericht^200.0 in 0) 
> [DefaultSimilarity], result of:
>       7.0577774 = score(doc=0,freq=1.0 = termFreq=1.0 ), product of:
>         0.9999749 = queryWeight, product of:
>           200.0 = boost
>           7.0579543 = idf(docFreq=1, maxDocs=855)
>           7.0840283E-4 = queryNorm
>         7.0579543 = fieldWeight in 0, product of:
>           1.0 = tf(freq=1.0), with freq of:
>             1.0 = termFreq=1.0
>           7.0579543 = idf(docFreq=1, maxDocs=855)
>           1.0 = fieldNorm(doc=0)
>   0.0021252085 = (MATCH) product of:
>     0.004250417 = (MATCH) sum of:
>       0.004250417 = (MATCH) sum of:
>         0.004250417 = (MATCH) MatchAllDocsQuery, product of:
>           0.004250417 = queryNorm
>     0.5 = coord(1/2)
>   -Infinity = (MATCH) FunctionQuery(log(int(clicks))), product of:
>     -Infinity = log(int(clicks)=0)
>     8.0 = boost
>     7.0840283E-4 = queryNorm
> </str>
>
> -----Original Message-----
> From: Erick Erickson [mailto:erickerick...@gmail.com]
> Sent: Dienstag, 3. Dezember 2013 20:30
> To: solr-user@lucene.apache.org
> Subject: Re: json update moves doc to end
>
> Try adding &debug=all and you'll see exactly how docs are scored. 
> Also, it'll show you exactly how your query is parsed. Paste that if 
> it's confused, it'll help figure out what's going wrong.
>
>
> On Tue, Dec 3, 2013 at 1:37 PM, Andreas Owen <a...@conx.ch> wrote:
>
> > So isn't it sorted automaticly by relevance (boost value)? If not do 
> > should i set it in solrconfig?
> >
> > -----Original Message-----
> > From: Jonathan Rochkind [mailto:rochk...@jhu.edu]
> > Sent: Dienstag, 3. Dezember 2013 19:07
> > To: solr-user@lucene.apache.org
> > Subject: Re: json update moves doc to end
> >
> > What order, the order if you supply no explicit sort at all?
> >
> > Solr does not make any guarantees about what order documents will 
> > come back in if you do not ask for a sort.
> >
> > In general in Solr/lucene, the only way to update a document is to 
> > re-add it as a new document, so that's probably what's going on 
> > behind the scenes, and it probably effects the 'default' sort order 
> > -- which Solr makes no agreement about anyway, you probably 
> > shouldn't even count on it being consistent at all.
> >
> > If you want a consistent sort order, maybe add a field with a 
> > timestamp, and ask for results sorted by the timestamp field? And 
> > then make sure not to change the timestamp when you do an update 
> > that you don't want to change the order?
> >
> > Apologies if I've misunderstood the situation.
> >
> > On 12/3/13 1:00 PM, Andreas Owen wrote:
> > > When I search for "agenda" I get a lot of hits. Now if I update the 2.
> > > Result by json-update the doc is moved to the end of the index 
> > > when I search for it again. The field I change is "editorschoice" 
> > > and it never contains the search term "agenda" so I don't see why 
> > > it changes the order. Why does it?
> > >
> > >
> > >
> > > Part of Solrconfig requesthandler I use:
> > >
> > > <requestHandler name="/select2" class="solr.SearchHandler">
> > >
> > >       <lst name="defaults">
> > >
> > >                  <str name="echoParams">explicit</str>
> > >
> > >                  <int name="rows">10</int>
> > >
> > >                   <str name="defType">synonym_edismax</str>
> > >
> > >                     <str name="synonyms">true</str>
> > >
> > >                     <str name="qf">plain_text^10 editorschoice^200
> > >
> > >                                 title^20 h_*^14
> > >
> > >                                 tags^10 thema^15 inhaltstyp^6
> > > breadcrumb^6
> > > doctype^10
> > >
> > >                                 contentmanager^5 links^5
> > >
> > >                                 last_modified^5              url^5
> > >
> > >                     </str>
> > >
> > >                     <str name="bq">(expiration:[NOW TO *] OR (*:* 
> > > -expiration:*))^6</str>  <!-- tested: now or newer or empty gets 
> > > small boost
> > > -->
> > >
> > >                     <str name="bf">log(clicks)^8</str> <!-- tested
> > > -->
> > >
> > >                     <!-- todo: anzahl-links(count urlparse in 
> > > links
> > > query) / häufigkeit von suchbegriff (bf= count in title and 
> > > text)-->
> > >
> > >                   <str name="df">text</str>
> > >
> > >                     <str name="fl">*,path,score</str>
> > >
> > >                     <str name="wt">json</str>
> > >
> > >                     <str name="q.op">AND</str>
> > >
> > >
> > >
> > >                     <!-- Highlighting defaults -->
> > >
> > >                  <str name="hl">on</str>
> > >
> > >                   <str name="hl.fl">plain_text,title</str>
> > >
> > >                     <str name="hl.simple.pre">&lt;b&gt;</str>
> > >
> > >                  <str name="hl.simple.post">&lt;/b&gt;</str>
> > >
> > >
> > >
> > >                   <!-- <lst name="invariants"> -->
> > >
> > >                      <str name="facet">on</str>
> > >
> > >                                 <str name="facet.mincount">1</str>
> > >
> > >                                  <str 
> > > name="facet.field">{!ex=inhaltstyp}inhaltstyp</str>
> > >
> > >                                 <str 
> > > name="f.inhaltstyp.facet.sort">index</str>
> > >
> > >                                 <str 
> > > name="facet.field">{!ex=doctype}doctype</str>
> > >
> > >                                 <str 
> > > name="f.doctype.facet.sort">index</str>
> > >
> > >                                 <str 
> > > name="facet.field">{!ex=thema_f}thema_f</str>
> > >
> > >                                 <str 
> > > name="f.thema_f.facet.sort">index</str>
> > >
> > >                                 <str 
> > > name="facet.field">{!ex=author_s}author_s</str>
> > >
> > >                                 <str 
> > > name="f.author_s.facet.sort">index</str>
> > >
> > >                                 <str 
> > > name="facet.field">{!ex=sachverstaendiger_s}sachverstaendiger_s</s
> > > tr
> > > >
> > >
> > >                                 <str 
> > > name="f.sachverstaendiger_s.facet.sort">index</str>
> > >
> > >                                 <str 
> > > name="facet.field">{!ex=veranstaltung}veranstaltung</str>
> > >
> > >                                 <str 
> > > name="f.veranstaltung.facet.sort">index</str>
> > >
> > >                                 <str 
> > > name="facet.date">{!ex=last_modified}last_modified</str>
> > >
> > >                                                 <str 
> > > name="facet.date.gap">+1MONTH</str>
> > >
> > >                                                 <str 
> > > name="facet.date.end">NOW/MONTH+1MONTH</str>
> > >
> > >                                                 <str 
> > > name="facet.date.start">NOW/MONTH-36MONTHS</str>
> > >
> > >                                                 <str 
> > > name="facet.date.other">after</str>
> > >
> > >         </lst>
> > >
> > > </requestHandler>
> > >
> > >
> >
> >
>
>

Reply via email to