[Xapian-discuss] Wildcards?

Jim Lynch jim at fayettedigital.com
Fri Feb 10 14:43:57 GMT 2006


Actually
qp.parse_query(query_string, 
Xapian::QueryParser::FLAG_PHRASE|Xapian::QueryParser::FLAG_BOOLEAN|Xapian::QueryParser::FLAG_LOVEHATE| 
Xapian::QueryParser::FLAG_WILDCARD);
works better.  ;)

Since the namespace isn't defined.
Jim.
Olly Betts wrote:

>On Fri, Feb 10, 2006 at 12:27:40PM +0200, David Levy wrote:
>  
>
>>And what about doing this with Omega ?
>>    
>>
>
>You'll need to tweak the source code for the moment - like so:
>
>--- query.cc	(revision 6503)
>+++ query.cc	(working copy)
>@@ -194,7 +194,7 @@
>     }
> 
>     try {
>-	query = qp.parse_query(query_string);
>+	query = qp.parse_query(query_string, FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE|FLAG_WILDCARD);
>     } catch (const char *s) {
> 	error_msg = s;
> 	return BAD_QUERY;
>
>
>Cheers,
>    Olly
>
>_______________________________________________
>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