lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (LUCENE-7148) Support boolean subset matching
Date Wed, 06 Apr 2016 01:40:25 GMT


David Smiley commented on LUCENE-7148:

Ahment:  A {{FunctionQuery}} matches all documents and returns a custom score.  Perhaps you
mean something like Solr's {{frange}} that filters based on the value?  That would be O(docs)
as it evaluates per doc.  It's much preferable to leverage the index.

An example of an existing query using the regexp technique is here by [~sstults]:
 (a custom Solr QParser).  Imagine making it configurable to take the separator char and then
working with the {{FingerPrintFilter}}.  (as an aside, I wish FPF was named something like

> Support boolean subset matching
> -------------------------------
>                 Key: LUCENE-7148
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/search
>    Affects Versions: 5.x
>            Reporter: Otmar Caduff
>              Labels: newbie
> In Lucene, I know of the possibility of Occur.SHOULD, Occur.MUST and the “minimum should
match” setting on the boolean query.
> Now, when querying, I want to
> - (1)  match the documents which either contain all the terms of the query (Occur.MUST
for all terms would do that) or,
> - (2)  if all terms for a given field of a document are a subset of the query terms,
that document should match as well.
> Example:
> Document d hast field f with terms A, B, C
> Query with the following terms should match that document:
> A
> B
> A B
> A B C
> A B C D
> Query with the following terms should not match:
> D
> A B D

This message was sent by Atlassian JIRA

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

View raw message