Re: optional vs. probhibited aka standard vs. dismax handler

2010-06-29 Thread Lukas Kahwe Smith
On 29.06.2010, at 15:01, Jan Høydahl / Cominvent wrote: > When you mix query handlers like this you will need to add a "+" or an "AND" > in front of the _query_: part as well, in order for it to be required. > You will see the difference when you try the above query directly on your > Solr ins

Re: optional vs. probhibited aka standard vs. dismax handler

2010-06-29 Thread Jan Høydahl / Cominvent
When you mix query handlers like this you will need to add a "+" or an "AND" in front of the _query_: part as well, in order for it to be required. I.e. hl.fragsize=0&facet=true&sort=score+desc&hl.simple.pre=&hl.fl=*&hl=true&rows=21&fl=*,score&start=0&q=%2Btag_ids:(23)++%2Bdocument_code_prefix:(A

Re: optional vs. probhibited aka standard vs. dismax handler

2010-06-29 Thread Lukas Kahwe Smith
On 29.06.2010, at 13:38, Lukas Kahwe Smith wrote: > > On 29.06.2010, at 13:24, Jan Høydahl / Cominvent wrote: > >> Hi, >> >> In DisMax the "mm" parameter controls whether terms are required or >> optional. The default is 100% which means all terms required, i.e. you do >> not need to add "+"

Re: optional vs. probhibited aka standard vs. dismax handler

2010-06-29 Thread Lukas Kahwe Smith
On 29.06.2010, at 13:24, Jan Høydahl / Cominvent wrote: > Hi, > > In DisMax the "mm" parameter controls whether terms are required or optional. > The default is 100% which means all terms required, i.e. you do not need to > add "+". You can change to mm=0 and you will get the same behaviour as

Re: optional vs. probhibited aka standard vs. dismax handler

2010-06-29 Thread Jan Høydahl / Cominvent
Hi, In DisMax the "mm" parameter controls whether terms are required or optional. The default is 100% which means all terms required, i.e. you do not need to add "+". You can change to mm=0 and you will get the same behaviour as standard parser, i.e. an "OR" behaviour, where the "+" would say t

optional vs. probhibited aka standard vs. dismax handler

2010-06-29 Thread Lukas Kahwe Smith
Hi, I am a bit confused about the +/- syntax. Am I understanding it properly that when using the normal query handler + means required and - means prohibit where as in the dismax handler + means required and - means optional? http://lucene.apache.org/java/2_9_1/queryparsersyntax.html The "+" or