News for hackers. Stuff that matters.
Re:Searchcode: A source code search engine by ch on Wednesday June 25, 2014 @07:31PM (#7947342)
We'll. They don't break tokens on '_' which is a plus (trend searching for pthread_t), and they seem to prioritize definitions over declarations.

This could become a useful code search option.

I would request that relevancy should take into account provenance. Meaning a search for pthread_t would return pthread implementations over uses.

This obviously can't make use of traditional tfidf for scoring.

Re:Searchcode: A source code search engine by boyter on Wednesday June 25, 2014 @08:39PM (#7947553)
Thanks. Yes, all characters are acutally indexed, with some logic to split intelligently when required. It will always go for the most exact match first though.

I have started looking at ranking the main implementation over usage, but found the results were less useful generally. This may have just been me though, as I wanted to see usage rather then the implementation, since if I know that I will just go to the source.

Perhaps an option to request that the orginal source is given greater weight on an advanced search page would solve this.

Re:Searchcode: A source code search engine by ch on Wednesday June 25, 2014 @11:18PM (#7947972)
Perhaps simply an info box which points to the implementation, set off from the usage results. No reason to give the results equal screen real-estate.