[ 
https://issues.apache.org/jira/browse/LUCENE-7899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074491#comment-16074491
 ] 

Adrien Grand commented on LUCENE-7899:
--------------------------------------

I think we should, I already failed multiple times to remember the name of this 
query even though I knew we had one. Something like 
{{DocValuesFieldExistsQuery}}? I'm tempted to go with a shorted name, but at 
the same time I'd like to reserve name space so that we could also have a 
norms-based implementation so that we could also find documents that have a 
value for text fields.

> Add "exists" query for doc values
> ---------------------------------
>
>                 Key: LUCENE-7899
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7899
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 7.1
>
>
> I don't think we have a query today to efficiently test whether a doc values 
> field exists (has any value) for each document in the index?
> Now that we use iterators to access doc values, this should be an efficient 
> query: we can return the DISI we get for the doc values.
> ElasticSearch indexes its own field to record which field names occur in a 
> document, so it's able to do "exists" for any field (not just doc values 
> fields), but I think doc values fields we can just get "for free".
> I haven't started on this ... just wanted to open the issue first for 
> discussion.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to