NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/50437

The following reply was made to PR bin/50437; it has been noted by GNATS.

From: David Holland <>
Subject: Re: bin/50437
Date: Mon, 30 May 2016 03:29:46 +0000

 On Sun, May 29, 2016 at 07:00:02PM +0000, Abhinav Upadhyay wrote:
  >  Hi,
  >  I think this is a special case. The new apropos tries to search for
  >  exact keywords as mentioned in the query and then tries to rank the
  >  documents which contain those keywords. While the old apropos used to
  >  do a grep kind of match in the NAME section and it could find partial
  >  matches (like lwp_park and _lwp_parK).
  >  I think the new apropos could handle such kind of issues. I have a
  >  proposed solution:
  >  Try to do a full text search for the query, if no results obtained,
  >  fallback to legacy mode search. However, there are few side-effects:
 I think it might be a better approach to try to teach the text
 retrieval engine that 'foo' and '_foo' (maybe also '__foo__') are
 similar words.
 Patching this special case by doing arbitrary substring searches will
 generate all kinds of false positives.
 David A. Holland

Home | Main Index | Thread Index | Old Index