When trying to search all bitbucket repositories i'm getting an oops! there is a problem.
https://bitbucket.org/search?q=ext%3Apy
I'm trying to search by file extension
ext:py
or language
lang:python
Edit: solution was to include the 'search term' which is the actual file extension also, ie:
ext:py py
In the console I'm seeing this message, "Query did not contain any search terms (only modifiers)" which isn't surfacing to the UI.
In any case, I think this should explain why it's not working. It appears that having a search term is required.
according to the docs this query should work, what am i missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please provide a quote and a link for reference? Looking at this page: https://confluence.atlassian.com/bitbucket/search-873876782.html it's not explicitly called out that you must include a search term, however, every single example, even examples about how to use and combine modifiers, all include a search term.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes i was looking at that page, however even this does not work
ext:py NOT path:thisdontwork
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's correct. It's the same error. There is still no search term. "ext:py" and "NOT" and "path:thisdontwork" are all modifiers. Add a search term and it should work.
```ext:py NOT path:pyc mySearchTerm```
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Rajiv Pardiwala,
Search dev here. Important line from the linked document:
Operators cannot be used alone; they must be used with an accompanying search term.
ext and path are operators. The query has to contain at least one term to match file path or file content – a word, simply speaking.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do i find all instances without any search term?
edit: nm figured something that kind of works. this seems like a missing feature to me though.
ext:py py
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do i find all instances without any search term?
There's no way to do this, it was one of the cases we intentionally didn't cover because it has some implications. You'd need to work around like you did. There's no universal work around though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it would be helpful to mention this specific case in the docs. thanks for the help in solving this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.