lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <>
Subject Re: FieldValueQuery
Date Thu, 08 Dec 2016 16:16:03 GMT
Le jeu. 8 déc. 2016 à 16:42, Hans Lund <> a écrit :

> That would be a solution for sure - but it has the drawback of doubling the
> indexed fields pr document.

If you want to do it for all fields, you could use the name of the field as
a value, for instance has_field:foo, has_field:bar, etc. This is how
Elasticsearch implements its exists query. One interesting thing to note is
that fields that appear in all documents will require very little storage
since the encoding we use for postings lists is optimized when all docs
have a given value.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message