Re: Explain file for Geo searches

At 05:55 PM 6/14/2005, Dr Robert Sanderson wrote:

>>  (dc.title any "water")and(geo.coordinates geo.overlap/geo.coordinate 
>> "-106.7,25.8,-93.5,36.5")
>
>geo.overlap could be cql.within/cql.partial

OK, I've changed the demonstrator at http://www.gils.net/sru-geo.html to 
generate

   (dc.title any "water")and(geo.coordinates 
cql.within/cql.partial/geo.coordinate "-106.7,25.8,-93.5,36.5")

>>I see how to encode the index "geo.coordinates" in the Explain file, but 
>>I don't see how to encode "geo.overlap" and "geo.coordinate". Can anyone 
>>help me here?
>
>
>You need to put them within a configInfo section in the index.
>
><index>
>   <map><name set="geo">coordinates</name></map>
>   <configInfo>
>     <supports type="relation">within</supports>
>     <supports type="relationModifier">geo.coordinate</supports>
>     <supports type="relationModifier">cql.partial</supports>
>   </configInfo>
></index>
>
>This allows us to include a lot of information without having to include a 
>bunch of new elements.\

OK, I've changed the Explain file at 
http://www.serach.gov/scienceExplain.xml to include:

   <index search="true" scan="false" sort="false">
     <title>coordinates</title>
     <map><name>coordinates</name></map>
     <map><name set="gils">coordinates</name></map>
     <map><name set="geo">coordinates</name></map>
     <configInfo>
       <supports type="relation">within</supports>
       <supports type="relationModifier">geo.coordinate</supports>
       <supports type="relationModifier">cql.partial</supports>
     </configInfo>
   </index>

Thanks!

Eliot

Received on Tuesday, 14 June 2005 22:29:01 UTC