[Xapian-discuss] stop word manipulation

James Aylett james-xapian at tartarus.org
Mon Apr 27 16:33:32 BST 2009


On Mon, Apr 27, 2009 at 03:56:04PM +0100, Gavin Whitehead wrote:

> I have found void Xapian::SimpleStopper::add ( const std::string &
> word) in the documentation to add stop words but I cannot see an
> equivalent to remove/delete stop words.  Does the API provide a
> mechanism to allow me to remove stop words from the list?

No, although it wouldn't be difficult to add. However SimpleStopper is
a tiny class (it's in $PREFIX/include/xapian/queryparser.h in an
installed system) which you could take and modify yourself for this in
the first instance.

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-discuss mailing list