Tuesday, July 13, 2010

Erdas apollo catalog searching new properties

As described in the Apollo Advantage guide

modify the queryables.xml

and then

modify the babel-types-infos.js

{
"name" : "properties.newlyAddedProperty",
"title" : "my newly added property",
"type" : "string",
"autoLike" : true
}


So the json query posted to the backend will be

{
"maxresults": 15,
"start": 0,
"profile": "eac-brief",
"orderby": ["class asc", "registrationDate desc"],
"maxresultcount": 501,
"template": {
"wmsEnabled": {
"_op": "eq",
"value": true,
"type": "boolean"
},
"properties": {
"anzlic": {
"value": "messi*",
"_op": "like",
"type": "string"
}
},
"class": "com.erdas.rsp.babel.model.imagery.ImageReference",
"nameQualifier": "babel://coverages"
}
}