X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fopen.cc;h=8a835e986d5dd78661eba0a53e793b288550b083;hb=a2785c3919c56a370a7f860f4eeb93846f4a1e63;hp=280ffee343f91e893a2743683290ea4b41c034ac;hpb=3df2281746d57abbb45790ecb432ef40533c30bc;p=notmuch diff --git a/lib/open.cc b/lib/open.cc index 280ffee3..8a835e98 100644 --- a/lib/open.cc +++ b/lib/open.cc @@ -432,7 +432,8 @@ _finish_open (notmuch_database_t *notmuch, "lastmod:"); notmuch->query_parser->set_default_op (Xapian::Query::OP_AND); notmuch->query_parser->set_database (*notmuch->xapian_db); - notmuch->query_parser->set_stemmer (Xapian::Stem ("english")); + notmuch->stemmer = new Xapian::Stem ("english"); + notmuch->query_parser->set_stemmer (*notmuch->stemmer); notmuch->query_parser->set_stemming_strategy (Xapian::QueryParser::STEM_SOME); notmuch->query_parser->add_rangeprocessor (notmuch->value_range_processor); notmuch->query_parser->add_rangeprocessor (notmuch->date_range_processor);