lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Subset Matching
Date Fri, 25 Mar 2016 15:43:09 GMT
Hi Otmar,

For this requirement, you need to create an additional field containing the number of words/terms
in the field.

For example.

field : blue pill
length = 2

query : if you take the blue pill
length  : 6

Please see my previous responses on the same topic:

I know they are solr responses but Function Queries exists in Lucene as far as know.

On Friday, March 25, 2016 11:20 AM, Otmar Caduff <> wrote:

Hi all
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.

Any clue on how to accomplish this?


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

View raw message