Mutiple trees in dxr
Noufal Ibrahim <noufal@...
2013-05-15 16:38:08 GMT
While working on https://github.com/mozilla/dxr/pull/130, I was
testing out multiple trees on dxr.
I have two trees. One called "code" (the default name in the
test directory) and another called "git".
After creating the indices and starting the web app, the initial dxr
page offers me a drop down from which I can select "code" or "git" and
an input field. After that, two links to browse code or git. These two
links work fine. My complaint is with the search behaviour.
If I select the "git" tree (which is not the default) and then
type something into the search field and hit enter, the URL called is
/code/search?tree=git&q=fish&redirect=true which searches the "code"
tree (rather than the selected "git") and then shows me a "no results"
page. This is, of course, wrong - there is a function called "fish" in
the git tree.
If however, I start to browse the "git" tree and then use the
search bar, the URL called out to is
and this gives me the results I'm looking for.
This is the behaviour I see on master. It looks like a bug. I'm
willing to work on it but I'd like to know if someone else can replicate
this on their setup so that I can confirm that it's not a local issue.