hubermedia documentation 2015 html
e T4META-search-querylanguage- Prefixes

Querylanguage-prefixes:

Standard
Field Type Sort Sample Description
title Query.Standard Yes

q=title:Golfplatz

sort=title asc

 You can search for a word in the title.

If the title field (see: title) is used for sort: asc = A-Z, desc = Z-A

category Query.Singleword Yes

q=category:Golf

sort=category asc

Search for a specific category. No full-text search is performed, the whole category name must be supplied including spaces, umlauts and accents.

The field can be sorted.

 

See Also: Falk Connected API - Categories

keyword Query.Singleword No

q=keyword:XYZ

 Search for a certain keyword / tag. No full-text search is performed.

rating_* Query.Rating Yes

q=rating_pricerange:[50 TO 100]

sort=rating_pricerange asc

 Any rating in the data pool can be queried. Ratings are always in the range of 0-100%.

The RatingType is appended to the prefix rating_ . (E.g. rating_pricerange: [50 TO 100] search == all with a pricerange rating of 50% or higher).

highlight Query.Boolean Yes

q=highlight:true

sort=highlight desc

 highlight:true returns only items that have the highlight flag.

When sorting, please use "sort=highlight desc", if the highlighted objects should appear first.

accessibility Query.Boolean Yes

q=accessibility:true

sort=accessibility desc

Search for objects that are marked as accessible (barrier free).

When sorting, please use "sort=accessible desc", if the accessible objects should appear first.

child_friendly Query.Boolean Yes

q=child_friendly:true

sort=child_friendly desc

Search for child-friendly objects.

When sorting, please use "sort = familyfriendly desc", if the family-friendly objects should appear first.

globalid Query.Exact No

q=globalid:1_123

 Find an object based on it's global id. In the form: {ChannelId} _ {Id}

channelid Query.Integer No

q=channelid:1

 

The output is restricted to certain channels. (z.B. 1 = MairDumont, 2 = Hotel.de)
sourceid Query.Exact No

q=sourceid:123

 Search an object using the ID provided by the content provider partner. There are other filters necessary (e.g. channelid), since this ID is not unique.

contentid Query.Integer 1-10 Yes

q=contentid:1

sort=contentid asc

 The topic can be restricted with the ContentId. Following topics are available:

Geo
Field Type Sort Sample Description
zip Query.Standard Yes

q=zip:93462

sort=zip asc

 Search for a postal code.

city Query.Standard Yes

q=city:Lam

sort=city asc

 Search for place names.

street Query.Standard Yes

q=street:Gaberlplatz

sort=street asc

Search for a street name.
country Query.Standard Yes

q=country:ITA

sort=country asc

 Search by country. Please use 3 digit ISO code (ISO 3166-1 ALPHA 3).

area Query.Standard No

q=area:Golf

 Search for a touristic region. The available areas vary per project and region.

lat Query.Double No

q=lat:[48.5 TO 49.0]

Specifying the latitude range to be searched. Range is required [48.1 TO 49.0].

This prefix is an alternative to the parameter NWLatitude and &SELatitude.

Useful only in conjunction with the lon- prefix.

lon Query.Double No

q=lon:[12.1 TO 12.5]

Specifying the longitude range to be searched. A range is required [12.5 TO 12.9].

This prefix is an alternative to the parameters &NWLongitudeand &SELongitude

Only in conjunction with thelat-prefix.

Special
Field Type Sort Sample Description
all Query.All No

q=-category:Hotel AND all:all

q=systag:has_video OR all:all

A special type in the form "all: all" can be used.

This field is necessary so a pure negative search can be performed where there are no other inclusive criterias.

Example: "-category:Hotel" does not work, because there is no result set to remove hotels from => solution: "-category: Hotel AND" all:all"

systag Query.Systag No

q=systag:has_video

Special data of the object can be queried with the systag- prefix.

So the value of "has_video" indicates whether the object has links of the type of "Video".

nearlinestring Query.Exact No

q=nearlinestring:....

With nearlinestring it is possible that objects will be searched along a path. A perimeter can be specified, how wide the corridor is, in which to search.

nearhashlink Query.Exact No

q=nearhashlink:~30km 86...A06

The surrounding items are displayed to the selected object (using the GlobalId).

Furthermore, the RADIUS in km or m can be determined.

Regex: ^~(\d+)(k?m) ([A-Z0-9]{32,})

Tour
Field Type Sort Sample Description
length Query.Integer Yes

q=length:[* TO 500]

sort=length asc

Filtering of data based on the length of the tour in m.

Ranges should be used here. ([1000 TO *] = tours with min. 1km in length)      

difficulty Query.Integer (0-5) Yes

q=difficulty:[* TO 3]

sort=difficulty asc

 An indication of the difficulty as integer value. The values of 1-5 are possible. (very easy, easy, medium, hard, very hard)

duration Query.Integer in s Yes

q=duration:[* TO 6000]

sort=duration asc

 Duration of the tour in minutes. Ranges can be used.

[60 TO *] = tour with at least one hour duration.

[15 TO 30] = tour in the range of 15-30 minutes.

 

altdiff Query.Integer Yes

q=altdiff:[* TO 300]

sort=altdiff asc

 Altitude supervisory and descent. Ranges can be used.

elevmax Query.Double Yes

q=elevmax:[* TO 1000]

sort=elevmax asc

 Maximum height above the sea level in meters. Ranges can be used.

elevmin Query.Double Yes

q=elevmin:[500 TO *]

sort=elevmin asc

 Minimum height above the sea level in meters. Ranges can be used.

round_tour Query.Boolean Yes

q=round_tour:false

sort=round_tour desc

 roundtour:true returns tours, if they are a round trip

When sorting, please use "sort=roundtour desc", if the round trip objects should appear first.

rest_stop Query.Boolean Yes

q=rest_stop:true

sort=rest_stop desc

 reststop:true returns tours, where there is a possibility of refreshment along the tour.

When sorting, please use "sort = reststop desc", if objects with a possibility of refreshment along the tour should appear first.

 

 


© hubermedia 2018 Privacy Statement Imprint