[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sdx-users] PB d'indexation ...
From: |
Rui AVELINO |
Subject: |
Re: [sdx-users] PB d'indexation ... |
Date: |
Fri, 15 Feb 2002 10:17:35 +0100 |
voila le probleme est resolu
il faut simplement renseigner le "Owner" du document
avec la fonction setOwner("code_user") et l'indexation
se passe bien.
remarque si le Owner n'est pas renseigné cela ne marche pas
non plus avec le telechargement du fichier sur le serveur pour ensuite
l'injecter dans la base (j'ai fait aussi le test).
mon code est donc le suivant :
SDXDocument[] tabTmpDoc = new SDXDocument[1];
tabTmpDoc[0]=new SDXDocument(sdxRequest.getParameter("id"));
tabTmpDoc[0].setContent(sdxRequest.getParameter("xml"));
tabTmpDoc[0].replace(false);
tabTmpDoc[0].setIndexed(true) ;
tabTmpDoc[0].setOwner("moncode");
tabTmpDoc[0].setFieldInfo(sdxDBInfo.getFieldInfo());
tabTmpDoc[0].transform(sdxDBInfo);
sdxDBInfo.updateDocumentBase(tabTmpDoc, sdxDBInfo.ACTION_ADD);
response.sendRedirect("voir.xsp?id=" + tabTmpDoc[0].getId());
Merci pour les conseils
Rui