Groups2009: some code refinements, get_Val macro do not throw an error if dictionary is not defined
Xapian2009: querying existing index made by xapwrap
I was trying to get some documents using xappy in index build with
MoinMoin/script/moin.py index build --mode=add
>>> import xappy >>> >>> index_dir = 'wiki/data/cache/xapian/index' >>> conn = xappy.SearchConnection(index_dir) >>> >>> q = conn.query_field('content', 'moin') >>> str(q) 'Xapian::Query()' >>> >>> results = conn.search(q, 0, 10) >>> results <SearchResults(startrank=0, endrank=0, more_matches=False, matches_lower_bound=0, matches_upper_bound=0, matches_estimated=0, estimate_is_exact=True)>
Currently, I do not understand, why query is qmpty ('Xapian::Query()'). May be i query frong field ( currently i query content)
read access to xapian.Index indexValueMap
'FortuneCookies'