[Xapian-discuss] Searching on filename, directory, etc

alexander lind malte at webstay.org
Fri Sep 12 14:59:43 BST 2008


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




More information about the Xapian-discuss mailing list