2017-08-03 3 views
0

J'essaie de trouver un moyen de rechercher une phrase. Essayer de le configurer en utilisant PropertyIsLike (wildcard, singleChar, etc) mais je ne trouve pas un moyen de rechercher "text1 text2".CSW Request: Recherche d'une phrase

Je reçois le résultat pour text1 et text2 mais pas pour "text1 text2". Une idée? Essayez d'utiliser des guillemets doubles "test1 test2"

Répondre

0

Par exemple:

<?xml version="1.0"?> 

<!-- Use double quotation marks to look for a phrase --> 
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" 
       service="CSW" version="2.0.2" 
       outputSchema="http://www.opengis.net/cat/csw/2.0.2" 
       resultType="results"> 
    <csw:Query typeNames="csw:Record"> 
     <csw:ElementSetName>summary</csw:ElementSetName> 
     <csw:Constraint version="1.1.0"> 
      <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> 
       <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\"> 
        <PropertyName>abstract</PropertyName> 
        <Literal>"test1 test2"</Literal> 
       </PropertyIsLike> 
      </Filter> 
     </csw:Constraint> 
    </csw:Query> 
</csw:GetRecords>