On Thu 09 Oct 2003, Earle Martin <openguides(a)downlode.org> wrote:
My preferred approach is "one box" as well,
but to *also* to have an
"advanced search" page, much like this one:
http://www.google.com/advanced_search?hl=en
I'm just reluctant to expend effort on creating a more advanced search
thing when (a) nobody's expressed a real need for it, and (b) the
simple search we have still needs work.
Kake wrote:
> Regarding search more generally, I think that
words typed into the
> search box should default to an "AND" search, which I don't believe
> they do at the moment.
Earle wrote:
No, they don't, which is definitely not right.
This should return the
Windsor Castle as the first hit:
http://openguides.org/london/supersearch.cgi?search=sausages+oysters
I've had a bash about at it, but I'm hampered by not having learnt
Parse::RecDescent yet. From my reading of the code, I'd have thought
that searches should default to OR, but they're not, so I'm clearly
misunderstanding the code.
Ivor: Could you take the time to comment the RecDescent grammar in
OpenGuides::SuperSearch, so I have something to go on? If you won't
find time to do it soon then we may have to put RecDescent aside for
now and use something simpler.
Or in fact if anyone else here understands Parse::RecDescent, could
you put me straight? The code is here:
http://search.cpan.org/src/KAKE/OpenGuides-0.25/lib/OpenGuides/SuperSearch.…
in the _perform_search method.
Thanks,
Kake