We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To show files by dir/ the query currently uses a prefix filter - a lot of these queries show up in the slow log
Better way to do that would be to use a path hierarchy tokenizer on that field http://www.elasticsearch.org/guide/reference/index-modules/analysis/pathhierarchy-tokenizer.html and then use the match_phrase query to search eg t/foo/bar (match_phrase to make sure they're in the right order)
match_phrase
t/foo/bar
You probably need something at the beginning of the path, so that you can anchor the search at the beginning as well
The text was updated successfully, but these errors were encountered:
An alternative would be to index the dir separately from the file - probably simplest
Sorry, something went wrong.
Moving to wishlist https://github.com/CPAN-API/cpan-api/wiki/Wishlist - please let us know if this isn't an issue any more
No branches or pull requests
To show files by dir/ the query currently uses a prefix filter - a lot of these queries show up in the slow log
Better way to do that would be to use a path hierarchy tokenizer on that field http://www.elasticsearch.org/guide/reference/index-modules/analysis/pathhierarchy-tokenizer.html and then use the
match_phrase
query to search egt/foo/bar
(match_phrase to make sure they're in the right order)You probably need something at the beginning of the path, so that you can anchor the search at the beginning as well
The text was updated successfully, but these errors were encountered: