I'm looking for code indexed by OpenGrok , the -a option was included to allow the first character of the search query to be a wildcard. I would like to find all occurrences of the foo method that take some string parameter ( foo("") with one or more characters per line), and the method is within 5 words of the bar variable.
With the word break provided by the standard tokenizer, I can use +full:"foo bar"~5 to get all foo( next to bar , but the exception of methods without parameters is a problem because (" indexed as two whitespace characters, so for example foo("jar") seems to match foo AND \ \ AND jar AND \ \" . syntax doesn't look like it supports searching for this combination (even without a wildcard, not "jar" ) with ""~5 proximity search Any ideas on how to achieve all or part of this, given that changing the tokenizer is not currently an option th?
source share