The map translates the information accessed by the provider into metainformation, and the query into a format understable by the information support. It usually does not have metainformation associated to it, so, the only way to extract this metainformation is directly from the information, mapping information fields into metainformation. In the same way, to translate a general query into the particular format a metainformation field is mapped to any local field. It is better undestood with an example.
The metainformation model is Dublin Core, whose propourse is to describe resources like books, images or in general anything which identity; its terms set is suitable to describe a wide range of concepts, regardless of its nature or format. The most important Dublin Core terms are title, creator, subject, description and identifier. A complete description of the terms is available in .
At the moment only one map mechanism is available, the filter map. It uses the same philosophy that the printf C function, it takes a string and substitutes some special strings into others. Lets see it with an example of a SQL provider.
To generate the response, the idea is the same. For example, in our example the data base table has fields author, title, booksAvatible and comment. The two first fields fits directly with Dublin Core terms, they are the same concept, so the filter string may be quite simple, for creator
There is not a DC term to describe if a resource is available or not, but we can use the DC description to express it with the following filter:
It may be more clear with a concrete example. Let's come back to the example configuration.
A map section contains several tags, two for each DC term, the attribute filter sets if it is a query map of a response map:
To get the response, Searchy maps all the response strings, searching something of the form %foo%, foo must be a field available in the data source. For the data base example, foo may be author, title, booksAvatible and comment.