twingly / twingly-search-api-ruby

:gem: Twingly Blog Search API in Ruby
https://developer.twingly.com/
MIT License
4 stars 0 forks source link

Take <post> contentType into account #36

Closed dentarg closed 8 years ago

dentarg commented 8 years ago

According to https://developer.twingly.com/resources/search/ the <post> tag we parse have an attribute contentType:

<post contentType="blog">

Shouldn't the client take that into consideration?

jage commented 8 years ago

Shouldn't the client take that into consideration?

Good question. Currently we're only serving blogs through Twingly Search API. But for new API versions we might serve other content types. We'll probably want to only select posts with content type "blog" and discard other posts (which will be none currently).