add QuerySegment

add QuerySegment
add macro to disable "unusefull" check in FullSegment