Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Searching for several values of the same field

Quote Reply
Searching for several values of the same field
Hi,

Does somebody know how to search in the same time for several values of the same field? Lets say I need to pool out books of two authors.

"query=balsac+dumas" doesn't work.

Thank you in advance.
Quote Reply
Re: [natalia] Searching for several values of the same field In reply to
I'm not totally definate, but you should be able to use;

?query=*;AuthorName=Something%20Here

LSQL lets you search by specific fields; so assuming that you do indeed have a field called "AuthorName", then it should be possible to search by that specific field :)

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Searching for several values of the same field In reply to
Hi Andy,

Thanks for your prompt reply. But it still doesn't work. My problem is that I need to search by 2 or more values in the same field. Here is my query:

http://www.unesco.org/...national_legislation

I have a field "information type". In this field I have different values (scrolling list), among which "national policy" and "national legislation". I only manage to search by one value. Perhaps what I want to do is not possible. But it would be good to know.

If you could help with this it would be really nice.

Thanks,

Natalia
Quote Reply
Re: [natalia] Searching for several values of the same field In reply to
Mmm... afraid I don't know :/

I would have thought the following would work;

search.cgi?d=1&query*;information_type=national_policy;information_type=national_legislation

...or;

search.cgi?d=1&query*;information_type=national_policy;information_type=national_legislation;bool=OR

... but that doesn't seem to be working :/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!