Re: [greenstone-users] Forcing Boolean Search

From Michael Dewsnip
DateFri, 04 Aug 2006 10:08:42 +1200
Subject Re: [greenstone-users] Forcing Boolean Search
In-Reply-To (001101c6b48f$012f5500$46a02dcb-Colin)
Hi Colin,

The "t" variable controls whether a "some"/"all" search is done. (You
can tell this by looking at the HTML source of the query page).

You're right that you need to edit the search macros (in query.dm) to
remove this combobox. If you search for "<select name="t">" you'll find
the bits you need to delete.

Lastly, you need to do "all" searches by default. You can do this by
setting the "t" value default to "0" in the Greenstone etc/main.cfg file:

cgiarg shortname=t argdefault=0

(This will affect all the collections in the installation).

Regards,

Michael

Lost Samoan (Corporate) wrote:

> Greetings All,
>
> I wish to remove the search option of □some□ in the □some□ / □all□ to
> always force Boolean searches (this is to gain consistent result
> sorts). So I had a look at the search macro□□
>
> I don□t have any desire to change the functions, just delete the combo
> box and mandate the query type as □0□ (all). Is there a simple way to
> do this rather than changing all the macro references to the search types?
>
> Thanks for your consideration!
>
> Regards,
>
> **Colin J. Murfett**
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>