WIP: migrate search engine to full-text-search package (#748)#968
WIP: migrate search engine to full-text-search package (#748)#968adamgundry wants to merge 1 commit intohaskell:masterfrom
Conversation
|
Would this let us implement #727 as well? |
It gives one possible strategy, yes. The We'd then need to expose a query API wrapping |
|
I think we really should merge this. Sorry for letting it languish. Can you explain what "The queryExplain API apparently changed fractionally, which affects searchPackagesExplain." means in more detail? (the memsize issue doesn't matter so much, imho) |
No need to apologise, because this clearly wasn't quite in a mergeable state when I threw it together, and apologies myself for not getting back to this sooner. I've looked slightly more closely at the Also, I noticed that |
|
@adamgundry Since the If you think it is better to keep the unreferenced code around, I wouldn't mind too much. I just think it is better to err on the side of removal. To me it is a philosophical choice, one could go either way, but if we choose to keep unused code around, that choice should be explicit so people can take it into consideration. |
See #748. This removes the search engine code in favour of the
full-text-searchpackage (which was derived from the Hackage codebase originally, so is almost exactly compatible). This is a very quick attempt; I haven't verified if there are code changes on either side that need to be dealt with.It has a couple of awkward places that still need attention:
queryExplainAPI apparently changed fractionally, which affectssearchPackagesExplain.MemSizeinstance, becausefull-text-searchdoes not expose the internal representation ofSearchEngine.