Issue (View Online)

Key: NXP-1313
Issue Type: Bug Bug
Status: Resolved Resolved
Priority: Major Major
Resolution: Fixed
Assignee: Georges Racinet
Reporter: Georges Racinet
Original Estimate: 1 hour
Remaining Estimate: 1 hour

Operations

View all
View comments
View history
Can't sort on text fields despite use of sortable="true" 
Updated: 04/07/07 11:40   Created: 04/07/07 10:04  

The following issue has been resolved as FIXED.

Project: Nuxeo Enterprise Platform 5
Components: Query / Search

 Description   
This is specific to the Compass backend.
If one defines the field as a property in the Compass mappings file (e.g, to use another analyzer than the default one), the sort dedicated subfield isn't created and the first ORDER BY on it ends up like this:


Caused by: java.lang.RuntimeException: field "guid:full_uid::sort" does not appear to be indexed
  at org.apache.lucene.search.FieldCacheImpl.getAuto(FieldCacheImpl.java:362)
  at org.apache.lucene.search.FieldSortedHitQueue.comparatorAuto(FieldSortedHitQueue.java:346)
  at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:189)
  at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:58)
  at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:40)
  at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:108)
  at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:219)
  at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:65)
  at org.apache.lucene.search.Hits.<init>(Hits.java:52)
  at org.apache.lucene.search.Searcher.search(Searcher.java:53)
  at org.compass.core.lucene.engine.transaction.ReadCommittedTransaction.findByQuery(ReadCommittedTransaction.java:468)
  at org.compass.core.lucene.engine.transaction.ReadCommittedTransaction.doFind(ReadCommittedTransaction.java:425)
  at org.compass.core.lucene.engine.transaction.AbstractTransaction.find(AbstractTransaction.java:91)
  at org.compass.core.lucene.engine.LuceneSearchEngine.find(LuceneSearchEngine.java:379)
  at org.compass.core.lucene.engine.LuceneSearchEngineQuery.hits(LuceneSearchEngineQuery.java:144)
  at org.compass.core.impl.DefaultCompassQuery.hits(DefaultCompassQuery.java:119)
  at org.nuxeo.ecm.core.search.backend.compass.CompassBackend.searchQuery(CompassBackend.java:350)
  at org.nuxeo.ecm.core.search.backend.compass.CompassBackend.searchQuery(CompassBackend.java:337)
  at org.nuxeo.ecm.core.search.service.SearchServiceImpl.searchQuery(SearchServiceImpl.java:528)
  at org.nuxeo.ecm.platform.search.ejb.SearchServiceBean.searchQuery(SearchServiceBean.java:133)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to