[ 
http://jira.nuxeo.org/browse/NXP-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thierry Martins reassigned NXP-2734:
------------------------------------

    Assignee: Thierry Martins  (was: Thierry Delprat)

> Probleme lors d'une requete NXQL 
> ---------------------------------
>
>                 Key: NXP-2734
>                 URL: http://jira.nuxeo.org/browse/NXP-2734
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Problem
>          Components: Query / Search
>            Reporter: Eric Georges
>            Assignee: Thierry Martins
>            Priority: Blocker
>
> Nous utilisons Nuxeo 5.2.0.M1. 
> Nous créons un nouveau type de document Chantier (voir le plugin ci-joint)
> Nous créons un workspace puis un Chantier.
> Le chantier est correctement créé. 
> Lorsque nous faisons select * FROM Document WHERE ecm:primaryType='Chantier' 
> dans la recherche avancée, nous récupérons correctement toute la liste des 
> chantiers
> Lorsque nous faisons select * FROM Document WHERE ecm:primaryType='Chantier' 
> ORDER BY ps:ref_protys, aucun document n'est retrouvé et il y a cette erreur 
> dans le log :
> Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
> java.lang.RuntimeException. message: no terms in field ps:ref_protys::sort - 
> cannot determine sort type
>         at 
> org.apache.lucene.search.FieldCacheImpl.getAuto(FieldCacheImpl.java:331)
>         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)
> Nous ne comprenons pas d'ou vient le problème.
> protys.xsd
> <?xml version="1.0"?>
> <xs:schema targetNamespace="http://project.nuxeo.com/protys/schemas/protys/"; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>   <xs:element name="ref_protys" type="xs:string"/>
> </xs:schema>
> core-types-contrib.xml
> <?xml version="1.0"?>
> <component name="fr.protys.declaration-schema.core-types-test">
>   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
>     <schema name="protys" src="schemas/protys.xsd" prefix="ps" />
>   </extension>
>   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
>     <doctype name="Chantier" extends="Document">
>       <schema name="common" />
>       <schema name="dublincore" />
>       <schema name="file" />
>       <schema name="protys" />
>     </doctype>
>   </extension>
> </component>
> declaration-search-contrib.xml
> <component name="fr.protys.declaration.service.search.contrib">
>   <extension
>     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
>     point="indexableDocType">
>     <indexableDocType indexAllSchemas="true" name="Chantier" />
>   </extension>
>       <extension target="org.nuxeo.ecm.core.search.service.SearchServiceImpl" 
> point="resource">
>               <resource name="protys" prefix="ps" indexAllFields="true" 
> type="schema">
>                 <field name="ref_protys" analyzer="default" stored="true" 
> indexed="true" type="Text" binary="false" sortable="true" 
> sortOption="case-insensitive"/>           
>               </resource>
>       </extension>
> </component>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to