import sys
sys.path.insert(0, '/root/gov_crawler')
import search_app as m

rows, total, has_more = m.search('梧州', page=1, page_size=10, sort='relevance')
print(f"search('梧州') → total={total}, rows={len(rows)}")
if rows:
    for r in rows[:3]:
        print(' -', r.get('title', '')[:50], '|', r.get('site_name', ''))
else:
    print('(空)')

# 对比
rows2, total2, _ = m.search('百色', page=1, page_size=10, sort='relevance')
print(f"search('百色') → total={total2}")
