useBestBets
on the correct IPTSQuery
in a query tree. For example, suppose your complete tree is ((TextQuery for dog
) AND (in folder 27)). In this case, "TextQuery for dog
", "folder 27", and the top-level BooleanQuery (AND
) are all separate IPTSQuery
objects. If you call useBestBets
on the TextQuery
, the folder restriction will be applied to the best bet targets as well as the other results, so you will only get targets in folder 27. If you call useBestBets
on the top-level BooleanQuery
instead, you will see best bet targets regardless of the folder they are located in. null
to turn off use of best bets for this query.IPTSModifiableQuery Interface | com.plumtree.server.search Namespace