Few things going on here!
'search' commands default search mode, is not extended. So if you use extended syntax, have to specifically enable extended mode. add -e
In your config file you've made it an Attribute. Attributes are NOT accessible in the @field syntax. ie they are NOT full text indexed, so you cant query by them.
So if want it in the search query, need to make a field. (not an attribute).
Then can do a query new @category_id 711
- but that means the query must match new
AND @category_id 711
, so it will behave exactly the same as the setFilter.
If you just want to "promote" that category, need to rearrange the query, so that it will only match on 'new', but the category bit is included, so that you can then influence the ranking
(new) | (new @category_id 711)
for example.
But then you also need to change the RANKING mode, so that it will change the ranking. Experment with the various modes to decide which you like. SPH_RANKING_WORDCOUNT, is the most basic, but might not be good enough.