[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-1099) Add query to DSL that allow you to match field exists

Marc Schipperheyn (JIRA) noreply at atlassian.com
Tue Apr 17 14:40:50 EDT 2012


Add query to DSL that allow you to match field exists
-----------------------------------------------------

                 Key: HSEARCH-1099
                 URL: https://hibernate.onjira.com/browse/HSEARCH-1099
             Project: Hibernate Search
          Issue Type: Improvement
          Components: engine, query
    Affects Versions: 4.1.0.Final
         Environment: Lucene 3.6
            Reporter: Marc Schipperheyn
            Priority: Minor


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

{code}
QueryBuilder qb = fts.getSearchFactory().buildQueryBuilder().forEntity(MyEntity.class).get();
qb.exists().onField("myField").createQuery();
qb.exists().not().onField("myField").createQuery();
{code}



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list