Re: [PATCH 2/2] docs: add advanced search capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2019-04-05 at 14:30 +0100, Daniel P. Berrangé wrote:
> Allow targetting the search scope to the website, wiki or mailing lists
> only. When javascript is disabled this should gracefully fallback to
> only searching the website.

I'm sure if the fallback doesn't work one of the many libvirt
developers who configured their browsers to block JavaScript will
complain swiftly and loudly :)

[...]
> +#search:hover div.advancedsearch {
> +    display: table;
> +}
> +
> +

Extra line here.

[...]
> +    for (var i = 0; i < whats.length; i++) {
> +	if (whats[i].checked) {
> +	    what = whats[i].value;
> +	    break;
> +	}
> +    }

Alignment is out of whack here (and also in the pseudo-switch
below).

[...]
> +    } else if (what == "wiki") {
> +	newq.value = "site:wiki.libvirt.org " + q.value;

MediaWiki has its own integrated search functionality, eg.

  https://wiki.libvirt.org/index.php?search=foo

Do you think we should still use Google for it?

> +    } else if (what == "lists") {
> +	newq.value = "site:redhat.com inurl:/archives/libvir " + q.value;

This doesn't seem to work the way you'd expect.

When I search

  site:redhat.com
  inurl:/archives/libvirt-users/
  "macvtap and tagged VLANs to the VM"

I get a few hits[1], but if I change it to

  site:redhat.com
  inurl:/archives/libvir
  "macvtap and tagged VLANs to the VM"

then I get zero hits.

If you don't feel like digging into why that's the case, I'm okay
with either searching libvir-list only or having separate checkboxes
for libvir-list and libvirt-users.


Other than what mentioned above, and with the disclaimer that I'm
not an expert in Web development, the implementation seem to work
and I couldn't spot anything obviously wrong with it.


[1] More recent threads, for whatever reason, don't seem to pop up
    among the search results.
-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux