From: Bittard, J. <jul...@lo...> - 2012-03-12 22:54:26
|
Hello, In the database eXist of my application, there is a collection "data" containing n collections (one per vendor). In each collection there as a resource containing the data. This resource is updated regularly by being completely replaced: deletion of the resource, then write the new resource. This resource contains a list of objects that I displayed in tabular form in an application page. But in many cases, there is only one object that appears instead of the list so that the request should returned. When I pass the request, a single object is returned. I then performed a reindex of my collection: my query now returns all objects. I'd like to understand why I need this re-indexing. I use eXist 1.4.0. Here is an excerpt of the resource: <tiers> ... <mvDemandes> <Demande> <miCode>40873</miCode> <miMillesime>2012</miMillesime> <msCodext>01340</msCodext> <msIdentifiant>2012-01340</msIdentifiant> <msDescription>Accompagnement à la scolarité 2011/2012</msDescription> <msStatut>En cours d'analyse</msStatut> </Demande> <Demande> <miCode>38153</miCode> <miMillesime>2011</miMillesime> <msCodext>08556</msCodext> <msIdentifiant>2011-08556</msIdentifiant> <msDescription>la construction d'un Accueil de Loisirs Sans Hébergement</msDescription> <msStatut>En cours d'analyse</msStatut> </Demande> <Demande> <miCode>33585</miCode> <miMillesime>2011</miMillesime> <msCodext>02241</msCodext> <msIdentifiant>2011-02241</msIdentifiant> <msDescription>la structure d'Accueil de Loisirs Sans Hébergement 3 à 6 ans</msDescription> <msStatut>En cours d'analyse</msStatut> </Demande> </mvDemandes> ... </tiers> The request : for $x in /tiers[miCode='183419']/mvDemandes/Demande [msStatut != 'Terminé'][msStatut != 'Refusé'] [msStatut = ('En attente de validation' ,'En cours de saisie' ,'En attente de réception par la collectivité' ,'En erreur' ,'A compléter ou corriger' ,'En cours d''analyse' ,'En attente d''avis externe' ,'En cours d''instruction' ,'Accepté' ,'Refusé' ,'A compléter' ,'En cours de paiement' ,'Payé partiellement' ,'Terminé' )] return <Demande>{$x/miCode}{$x/msIdentifiant}{$x/mdtDateCre}{$x/msDescription}{$x/msStatut}</Demande> Attached is the configuration file indexes Thank you for your help. Julien Think green - keep it on the screen. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. |