| Summary: | Example 5.6. Specifying a Lucene Sort, should be changed | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Vitalii Chepeliuk <vchepeli> |
| Component: | Documentation | Assignee: | Misha H. Ali <mhusnain> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | anistor, 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 19:29:01
Topic ID: 14312-489751 [Latest]
|
|
| Last Closed: | 2014-01-16 00:03:01 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: | |
Misha seems there are some problems to see text Topic 14312 failed validation and is not included in this build. Please review the compiler error for Topic ID 14312 for more detailed information. Sorry about that. It should now be fixed and available at the provided link. Now it is fine. Can be closed. Thanks! 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 |
Title: Sorting Describe the issue: org.infinispan.query.FullTextQuery query = s.createFullTextQuery( query, Book.class ); org.apache.lucene.search.Sort sort = new Sort( new SortField("title", SortField.STRING)); query.setSort(sort); List results = query.list(); Suggestions for improvement: org.infinispan.query.CacheQuery cacheQuery = Search.getSearchManager(cache).getQuery(luceneQuery, Book.class); org.apache.lucene.search.Sort sort = new Sort( new SortField("title", SortField.STRING)); cacheQuery.setSort(sort); List results = cacheQuery.list(); Additional information: