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: Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
To: NetBSD GNATS <gnats-bugs%netbsd.org@localhost>
Cc: 
Subject: Re: bin/50437
Date: Mon, 30 May 2016 00:26:01 +0530

 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:
 
 1. If any of the man pages contain the keyword, then the legacy mode
 search wouldn't be triggered. For example, if a man page had the
 keyword lwp_park, then it would match and then apropos wouldn't fall
 back to the legacy search.
 
 2. The output of the legacy mode search wouldn't contain the snippets,
 because it doesn't use the full text search. So at times it might seem
 weird that the output contains snippet and other times it doesn't :)
 
 I will post a patch soon.
 
 -
 Abhinav
 


Home | Main Index | Thread Index | Old Index