lucene icon indicating copy to clipboard operation
lucene copied to clipboard

Need QueryParser support for BooleanQuery.minNrShouldMatch [LUCENE-466]

Open asfimport opened this issue 20 years ago • 3 comments

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ć" "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.


Migrated from LUCENE-466 by Mark Harwood (@markharwood), 1 vote, updated Mar 19 2014 Environment:

Operating System: other
Platform: Other

Linked issues:

  • #1473

asfimport avatar Nov 17 '05 01:11 asfimport

Ivan Biggs (migrated from JIRA)

Hello, My name is Ivan Biggs and I'm very interested in working with Lucene for my Google Summer of Code Project. I've read a lot of the relevant documentation and currently have my eye on this issue, however It is my understanding that if I work on this, I should likely work on another more minor issue in addition to constitute a more suitable work load this summer.

If anyone has any interest in mentoring, giving relevant ideas, suggesting another related issue, or generally giving me an idea of what sort of proposal Apache would be looking for it'd be greatly appreciated.

Thanks, Ivan

asfimport avatar Mar 12 '14 17:03 asfimport

Ivan Biggs (migrated from JIRA)

After reviewing other GSoC 2014 tagged issues for LUCENE, I believe (due to the relative simplicity of updating the query parsers) that it would be fairly interesting and doable to work out #5957 dur9ing my GSoC work this summer. Thanks again, Ivan

asfimport avatar Mar 12 '14 22:03 asfimport

Michael McCandless (@mikemccand) (migrated from JIRA)

Can any Lucene/Solr committer volunteer to mentor this project and/or #5957?

asfimport avatar Mar 19 '14 10:03 asfimport