I may be wrong, but i think what you are talking about is a BooleanQuery
containing several MaxDisjunctionQuery.  take a look at the code in this
patch...

        http://issues.apache.org/jira/browse/LUCENE-323


: Date: Mon, 24 Oct 2005 20:13:55 +0300
: From: Maxim Patramanskij <[EMAIL PROTECTED]>
: Reply-To: java-user@lucene.apache.org, Maxim Patramanskij <[EMAIL PROTECTED]>
: To: java-user@lucene.apache.org
: Subject: Cross-field multi-word and query
:
:
: I have the following problem:
:
: I need to construct programmatically a Boolean query against n fields
: having m words in my query.
:
: All possible unique combinations(sub-queries) are disjunctive between
: each other while boolean clauses of each combination combines with AND
: operator.
:
: The reason of such complexity is that I have to find a result of AND
: query against several field, when parts of my query could appear in
: different fields and I can't create just one single field because each
: field has its own boost level.
:
: Does anyone have an experience of writing such query builder?
:
: Best regards,
:  Maxim
:
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: [EMAIL PROTECTED]
: For additional commands, e-mail: [EMAIL PROTECTED]
:



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to