Frank J Bruzzaniti
2008-Sep-12 02:44 UTC
[Xapian-discuss] Searching on filename, directory, etc
I've been trying to work out how to search on stuff like filenames and directory. E.g. I'd like to search for *.pdf. I'm using omega, is this possible.
alexander lind
2008-Sep-12 13:59 UTC
[Xapian-discuss] Searching on filename, directory, etc
You have to make a small change in the omega source to allow wildcard searching. This may be somewhat different in omega 1.0.8, but in 1.0.7, its line 239 of query.cc, replace the query = qp.parse... with query = qp.parse_query(query_string, Xapian::QueryParser::FLAG_BOOLEAN | Xapian::QueryParser::FLAG_PHRASE | Xapian::QueryParser::FLAG_LOVEHATE | Xapian::QueryParser::FLAG_WILDCARD); Then recompile. Alec On Sep 11, 2008, at 7:44 PM, Frank J Bruzzaniti wrote:> I've been trying to work out how to search on stuff like filenames and > directory. > > E.g. I'd like to search for *.pdf. > > I'm using omega, is this possible. > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss