Of cause! Almost too obvious ;-) thx alot - I'll spend some time wondering
why that didn't pop up in my mind as a solution.
On Thu, Dec 8, 2016 at 5:16 PM, Adrien Grand wrote:
> Le jeu. 8 déc. 2016 à 16:42, Hans Lund a écrit :
>
> > That would be a solution for sure - but it has the drawbac
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
That would be a solution for sure - but it has the drawback of doubling the
indexed fields pr document.
Looking at the field stats where this is needed we have around 600 fields
pr "document" -
Most of them already having doc values and adding 600 new fields instead of
15 BinaryDocValueField also s
Unlike for doc values fields, Lucene does not store this information
(which documents have a given indexed field) efficiently and so there
is no query for it.
If this is important to you, you could add another field for each
indexed field? E.g. if the document has field foo, you would also
index