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

Sanne Grinovero (JIRA) noreply at atlassian.com
Mon Apr 30 09:35:48 EDT 2012


     [ https://hibernate.onjira.com/browse/HSEARCH-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero closed HSEARCH-1099.
------------------------------------

    Resolution: Won't Fix

> 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