8 Nov 18:26
QueryParser : some remarks
Daniel Ménard <Daniel.Menard <at> bdsp.tm.fr>
2007-11-08 17:26:53 GMT
2007-11-08 17:26:53 GMT
Hi to all, First, I would like to say a big thank you for the work which was done on my 'wish bug' to allow mapping one field to multiple prefixes (http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=93). That's great! I have upgraded to 1.0.4 and I am revisiting my code, replacing the php query parser I wrote with Xapian's one. Everything works well, but I have some remarks: 1. Adding a stopper to the query parser can make apache hangs under windows (using php bindings) I already reported this problem in the past, see thread: http://thread.gmane.org/gmane.comp.search.xapian.general/4599/focus=1198 but I did not filled a bug report and it was never addressed. It is not critical for me, as I have a workaround (store the stopper in a global variable or property so it is not destroyed too early, see above thread for details), but it would be nice if we can finally address it... 2. Wildcards: no limits? It seems that there is no limit on the number of terms a wildcard will generate: the query "a*" will generate a huge query OR'ing all the terms which start with an 'a' that will take lot of resources and time to execute (this is a problem: a malicious user can exploit this to deny access to others).(Continue reading)
RSS Feed