Bug 1035717 - Example 5.6. Specifying a Lucene Sort, should be changed
Summary: Example 5.6. Specifying a Lucene Sort, should be changed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Documentation
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 6.2.0
Assignee: Misha H. Ali
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-28 10:28 UTC by Vitalii Chepeliuk
Modified: 2014-01-16 00:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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


Attachments (Terms of Use)

Description Vitalii Chepeliuk 2013-11-28 10:28:58 UTC
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:

Comment 3 Vitalii Chepeliuk 2013-11-28 12:41:35 UTC
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.

Comment 4 Misha H. Ali 2013-11-28 23:32:29 UTC
Sorry about that. It should now be fixed and available at the provided link.

Comment 5 Adrian Nistor 2013-12-02 14:17:20 UTC
Now it is fine. Can be closed. Thanks!

Comment 6 Misha H. Ali 2014-01-16 00:03:01 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


Note You need to log in before you can comment on or make changes to this bug.