|
The following issue has been resolved as FIXED.
|
|
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)
|
|
|
|
|
|
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets