Add query to DSL that allow you to match field exists
Description
Activity
Show:

Marc Schipperheyn April 30, 2012 at 3:31 PM
Yes, this is my opinion

Sanne Grinovero April 30, 2012 at 12:43 PM
"move to close", do you mean we should close this? Is indexNullAs good enough to replace this?

Marc Schipperheyn April 28, 2012 at 8:57 PM
This is actually resolved by indexNullAs. Move to close
https://issues.apache.org/jira/browse/LUCENE-3593 adds a new filter for Lucene 3.6 that allows you to match documents that contain or do not contain a certain field.
This would be a usefull way to test for indexedEmbedded objects that are null in the query dsl. Something like
QueryBuilder qb = fts.getSearchFactory().buildQueryBuilder().forEntity(MyEntity.class).get(); qb.exists().onField("myField").createQuery(); qb.exists().not().onField("myField").createQuery();