[Xapian-discuss] Total matches found and how to disable stemming.
Kevin SoftDev
kevin.softdev at gmail.com
Thu Mar 9 18:25:09 GMT 2006
Olly,
There is no error but no change in result either ... so I thought that my
syntax is wrong ...
search for hiking does not return any results:
http://nitra.net/cgi-bin/hladaj.cgi?a=q&q=hiking&c=sk
search for hike return result including hiking:
http://nitra.net/cgi-bin/hladaj.cgi?a=q&q=hike&c=sk
#--------- using the following implementation ----------#
my $db = Search::Xapian::Database->new( '/indexdatabase' );
my $qp = Search::Xapian::QueryParser->new();
$qp->set_stemming_strategy(STEM_NONE);
my $enq = $db->enquire($qp->parse_query($terms));
my $total = $db->get_termfreq($terms);
Kevin
On 3/9/06, Olly Betts <olly at survex.com> wrote:
>
> On Thu, Mar 09, 2006 at 08:37:10AM -0800, Kevin SoftDev wrote:
> > Yes I tried but I am nit sure if I understand the right syntax in Perl.
> Is
> > this one correct ? Because does not seems to work.
>
> What's the error message?
>
> > my $qp = Search::Xapian::QueryParser->new();
> > $qp->set_stemming_strategy(STEM_NONE);
>
> That looks right. Note you'll need Search::Xapian 0.9.2.4 for this.
>
> Cheers,
> Olly
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20060309/a92cd82b/attachment.htm
More information about the Xapian-discuss
mailing list