Chris Hostetter wrote:
: :      <str name="qf">
: :         text^0.5 features^1.0 name^1.2 manu^1.1
: :      </str>

: > if the q param is:  albino elephant  ... what would it mean that text and
: > feature are mandatory?  do both words have to appear in text and in
: > feature, or just one in each?

: What I wanted is that  'albino' 'elephant' words have to appear in both
: 'text' and  'features' fields and  optionally in 'name' and 'manu' fields.

there's no way to do that right now in dismax ... i actually don't think
there's anyway to do that in the underlying DisjunctionMaxQuery class --
the dismaxhanderl builds one for each of the words (and combines them all
into a BooleanQuery) but the "albino" DisjunctionMaxQuery for example
doesn't have any way to model that you want the "text" and "features"
clauses to be required.  (DisjunctionMaxQuery doesn't have the
mandatory/optional/prohibited notions that BooleanQuery has)

Ok, I understand,  thank you for your clear answer.

Arno.

Reply via email to