[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-1099) Add query to DSL that allow you to match field exists
Sanne Grinovero (JIRA)
noreply at atlassian.com
Mon Apr 30 06:43:52 EDT 2012
[ https://hibernate.onjira.com/browse/HSEARCH-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46459#comment-46459 ]
Sanne Grinovero commented on HSEARCH-1099:
------------------------------------------
"move to close", do you mean we should close this? Is indexNullAs good enough to replace this?
> 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