Hello Mateusz,
yes, it is possible in two ways.
-
Create two indexes and the results web parts and order them in design mode. That the first one will be displaying just products and the second one other pages. But it doesn't work good with paging.
-
Is you are using smart search, you can boost query by document type. Just put the additional condition in smart search results webpart: +(classname:cms.products)^2
Important thing is that the ClassName fields should be only searchable and tokenized option enabled in search fields of your page type. You can find this search fields in ecommerce.sku class in Ecommerce module.
More details about the boosting http://lucene.apache.org/core/3_5_0/queryparsersyntax.html#BoostingaTerm