1. xpath queries are case sensitive. It should be /[EMAIL PROTECTED]'ANTONIO'] 2. the command line states you are querying /tiplaboral/A/A when you say the collection is /tiplaboral/actor/A/A. These are mismatched, which one is correct?
-Kevin Ross -----Original Message----- From: Gerardo Leon Eivet [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:05 PM To: [email protected] Subject: RE: Xpath no find all results! Hi! the collecion is /tiplaboral/actor/A/A the estructure in documento is <actor NUMERO="05250" ANIO="2002" NUM_JUNTA="10" MUNICIPIO="000002" SEXO="F" NOMBRE="ANTONIO" AP_PAT="SALINAS" AP_MAT="TOVAR" /> from line command the xpath set is:xindice xpath_query -c /db/kiosco_rh/tiplaboral/A/A -q /[EMAIL PROTECTED]'ANTONIO'] this is very strange because only find one document. I am sure that exist more then 20 documents, where the attribute NOMBRE='ANTONIO'. with java I use the method XPathQueryService service = (XPathQueryService) col.getService("XPathQueryService", "1.0"); ResourceSet resultSet = service.query(xpath); ResourceIterator results = resultSet.getIterator(); while (results.hasMoreResources()) { Resource res = results.nextResource(); System.out.println((String) res.getContent()); } only find one resulset or 10 resulset. before days the collection only have 300 documents. If I try find a document with xpath the resultset was very well. Now with more 1000 documets, not find all documents. Do you can help me? Lo que se me hace raro es que la coleccion tiene mas de 1000 documentos y por eso no este encontrando todos. Gracias >From: "Kevin Ross" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: <[email protected]> >Subject: RE: Xpath no find all results! >Date: Mon, 23 Jun 2003 16:39:16 -0600 > >Please provide a sample document and the xpath query you are using. > >-Kevin > >-----Original Message----- >From: Gerardo Leon Eivet [mailto:[EMAIL PROTECTED] >Sent: Monday, June 23, 2003 3:22 PM >To: [email protected] >Subject: Xpath no find all results! > >Hi Kevin > >I from Mexico, my speak english not's very well. > >I have a problem. > >I tried a xpath in collection. > >Collection have a 1000 documents. > >I sure have 20 documents with the attribute nombre='ANTONIO' > >the resulset only find one!! > >Do you can help me? > >Thanks!! > >_________________________________________________________________ >�nete al mayor servicio mundial de correo electr�nico: >http://www.hotmail.com > _________________________________________________________________ Charla con tus amigos en l�nea mediante MSN Messenger: http://messenger.microsoft.com/es
