EDIT – This has now been resolved. All the below searches should work correctly, with the exception of XCompositeGetOverlayWindow. I am adding that to the index to be refreshed sometime in the next month or so.
Well thanks to some sample searches being thrown against the codesearch index I can finally start tuning issues that have cropped up. The main issue I have currently is searches returning no results where you would expect some. Some examples are included below.
Most of the problems I found were during my outage window which is good to discover. With the exception of the last query above which returns nothing due to the index not having X.org indexed (yet) all issues are due to a undiscovered bug.
Take the following example,
The problem is the way which I interpreted the regex. Essentially on the back-end a lot of the regex is expanded out fully for a certain amount of cases and a list of matches are generated. This is to ensure that it can run quickly. Think of it as precaching every possible regex against all lines in all the files. The problem in this case is that I have a unit test case missing. I never included a test which matched the above and because of this there is a bug in the way that is expanded out to match everything. A modified version of the above which does return results is,
The above query returns results as would be expected. In fact all of the ones above can be rewritten to work correctly. Such as the below,
[/com.google.gwt.* A/ ext:java]
[/sql.append.* se/ ext:java]
[/com.google.gwt.* AsyncCallback/ ext:java]
If you try the above queries you will see they act as expected. I will be updating code shortly to take this case into consideration, and of course post an update here.
: http://searchco.de/?q=/com.google.gwt.A/ ext:java : http://searchco.de/?q=/sql.append.se/ ext:java : http://searchco.de/?q=/memcpy.sizeof/ : http://searchco.de/?q=/com.google.gwt.AsyncCallback/ ext:java : http://searchco.de/?q=/XCompositeGetOverlayWindow/ : http://searchco.de/?q=/memcpy. sizeof/ : http://searchco.de/?q=/com.google.gwt. A/ ext:java : http://searchco.de/?q=/sql.append. se/ ext:java : http://searchco.de/?q=/com.google.gwt. AsyncCallback/ ext:java