.with(eq("tfts.index", Locale.placeHolder()))
.where(and(obsoleteCondition, docIdCondition,
searchCondition, stateCondition,
otherSourceCondition, otherTargetCondition))
.orderBy("tf.pos");
return query.toQueryString();
}
/**
* This builds a query for editor modal navigation. It only select text flow
* id and text flow target content state (text flow pos is also in select