Boosting phrase queries in dis max query parser

In solr when using dismax query you can boost phrase query.

QueryStringQueryBuilder queryString = QueryBuilders
				.queryString("search text");
queryString.field("title", 10).field("content", 10);

While issuing the above query, I want to boost phrase query, where documents where title contains "search text" phrase or content contains "search text" phrase should come on top.