lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-395) CoordConstrainedBooleanQuery + QueryParser support
Date Mon, 03 Oct 2005 20:11:48 GMT
    [ ] 

Yonik Seeley commented on LUCENE-395:

> if there is only one optional clause, and minNrShouldMatch==1 ... should it be treated
as if it's required

That would be my vote... it requires less special case checking when generating queries.

>  if/when clients set the minNrShouldMatch to be a value higher then the number of optional

Either treat all optional clauses as required, or don't match any clauses.  I guess I would
lean toward being literal and not match anything.

> CoordConstrainedBooleanQuery + QueryParser support
> --------------------------------------------------
>          Key: LUCENE-395
>          URL:
>      Project: Lucene - Java
>         Type: Improvement
>   Components: Search
>     Versions: unspecified
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Mark Harwood
>     Assignee: Lucene Developers
>     Priority: Minor
>  Attachments:,,,, LUCENE-395.patch, LUCENE-395.patch,,
> Attached 2 new classes:
> 1) CoordConstrainedBooleanQuery
> A boolean query that only matches if a specified number of the contained clauses
> match. An example use might be a query that returns a list of books where ANY 2
> people from a list of people were co-authors, eg:
> "Lucene In Action" would match ("Erik Hatcher" "Otis Gospodneti&#263;" "Mark Harwood"
> "Doug Cutting") with a minRequiredOverlap of 2 because Otis and Erik wrote that.
> The book "Java Development with Ant" would not match because only 1 element in
> the list (Erik) was selected.
> 2) CustomQueryParserExample
> A customised QueryParser that allows definition of
> CoordConstrainedBooleanQueries. The solution (mis)uses fieldnames to pass
> parameters to the custom query.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message