Closed dpford closed 9 years ago
shouldn't it be path_analyzed, not path_full, to get the tree functionality?
actually, I think it should be path.path_analyzed
. See: https://github.com/cfpb/github-wiki-search/blob/fb2dc1ae13353bc4009bac261fd1b4180fadc4cb/client/src/static/js/app.js
Ah, good call. path_full works for when the full path is entered. path_analyzed works for both the full path and the first part of it (e.g. /cfpb). I didn't see a difference between path.path_analyzed and just path_analyzed, in terms of ES results.
looks good.
Previously, the ES query being generated was filtering by "path", but the correct field is "path_full". This makes that change.