[Xapian-tickets] [Xapian] #350: Stopping wildcard expansion at some point
Xapian
nobody at xapian.org
Fri Mar 20 12:39:48 GMT 2009
#350: Stopping wildcard expansion at some point
-------------------------+--------------------------------------------------
Reporter: asjo | Owner: olly
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: QueryParser | Version:
Severity: normal | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
If there are many (many) terms with the same prefix and a wildcard search
matching those is performed, the QueryParser tries to create a huge query,
exhausting RAM even on reasonably sized machines (8GB).
Attached is a patch that makes it possible to ask the QueryParser to throw
an exception if a wildcard expands to more than a configurable number of
terms.
Some discussion on the mailinglist:
* http://thread.gmane.org/gmane.comp.search.xapian.general/7124
--
Ticket URL: <http://trac.xapian.org/ticket/350>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list