Bug 1035629

Summary: Example 5.3. and Example 5.4 should be improved
Product: [JBoss] JBoss Data Grid 6 Reporter: Vitalii Chepeliuk <vchepeli>
Component: DocumentationAssignee: Misha H. Ali <mhusnain>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jdg-bugs, vchepeli
Target Milestone: GA   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Build Name: 14318, Infinispan Query Guide-6.2-1 Build Date: 28-11-2013 16:34:04 Topic ID: 14309-489695 [Latest]
Last Closed: 2014-01-16 00:02:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vitalii Chepeliuk 2013-11-28 08:47:14 UTC
Title: Generality

Describe the issue:
Example 5.3. Wrapping a Lucene Query in a Hibernate Query

FullTextSession fullTextSession = Search.getFullTextSession( session );
org.hibernate.Query fullTextQuery = fullTextSession.createFullTextQuery( luceneQuery );


Suggestions for improvement:
Example 5.3. Wrapping a Lucene Query in a Infinispan Query
CacheQuery cacheQuery = Search.getSearchManager(cache).getQuery(luceneQuery);

Example 5.4. Filtering the Search Result by Entity Type
CacheQuery cacheQuery = Search.getSearchManager(cache).getQuery(luceneQuery, Customer.class);
// or 
CacheQuery cacheQuery = Search.getSearchManager(cache).getQuery(luceneQuery, Item.class, Actor.class);



Additional information:

Comment 3 Misha H. Ali 2013-11-28 09:21:44 UTC
Wrong link, do not verify yet.

Comment 5 Misha H. Ali 2014-01-16 00:02:59 UTC
The fix for this bug is now generally released and available here:

https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Data_Grid/6.2/index.html