Is it possible to send 50-100 terms in the as_q parameter?

3 views
Skip to first unread message

Svetoslav

unread,
Nov 4, 2009, 10:10:57 AM11/4/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hello,

I would like to OR search for 50-100 different terms in the url. Is
this at all possible?

I would like to submit a query like:

q=TERM(s)&as_q=inurl:TERM1=blabla&as_q=inurl:TERM2=A|B|c|d|orange|
apple|pear|..|Zealous

According to the documentation, the GSA can accept max 50 queries (q +
as_q)
The query's length can be max 128 characters excluding special
characters. Does this limit apply to the as_q parameter?

Thank you very much in advance!
Svetoslav

Mike

unread,
Nov 6, 2009, 3:56:37 AM11/6/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hello Svetoslav,

yes, it also applies to the as_q parameter since the values from as_q
will just be appended to q and treated the same way.

Note, the 128 char limit is per TERM. This means that for example
q=<alpha>+<beta> each of the variables alpha and beta could contain a
word of the length of 128 chars!

Cheers
Mike

Svetoslav

unread,
Nov 6, 2009, 5:07:50 AM11/6/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi Mike,

Thanks for the answer. Actually, I am aware this is (I think I should
have been more explicit about the real nut). My real pain is with the
construction of a specific as_q which definitely exceeds the limit.

I need to do the following:

as_q=inurl:word=apple|pear|plum|orange|...|zorro

where I would like to find an URL which contains either of the terms:
word=apple OR word=pear OR word=orange etc. I have about 50 to 100
different words with this pattern. I hope that the above syntax is
correct (at least I get results as long as the word I am looking for
appears earlier in the string, but not if its at end)

I will test a number of options but any ideas are appreciated. I will
be trying any of these:

q=TERM1+OR+inurl:word=apple|pear+OR+inurl:plum|orange
as_q=inurl:word=zorro|zack

Another question is that the more as_q parameters I add, they will all
be treated as AND operation to the q parameter. Is there a way to add
more as_q parameters where they are all treated with the OR operator?

Thank you in advance!
Best,
Svetoslav
Reply all
Reply to author
Forward
0 new messages