PDA

View Full Version : BOSS query params (Filtered Results)


richards374674
06-04-2010, 09:31 AM
I would like to filter my results using the BOSS query params:

# inurl:query - only return if the query string is in the url
# intitle:query - only return if the query string is in the title

Can you give me an example of how to integrate these parameters into your Search for BOSS code?

I will eventually add a drop-down menu to the search form.

Your help would be appreciated.

Jason Byrnes
06-07-2010, 06:55 AM
you need to edit line 2 of the Yahoo/BOSS_include.php file:


$url = 'http://boss.yahooapis.com/ysearch/web/v1/'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start;



for the 'inurl' filter:

$url = 'http://boss.yahooapis.com/ysearch/web/v1/inurl:'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start;


for the 'intitle' filter:

$url = 'http://boss.yahooapis.com/ysearch/web/v1/intitle:'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start;

richards374674
06-07-2010, 05:18 PM
Thanks Jason!

I believe this little tid-bit of information definite opens up a new realm of possibilities for everyone here using BOSS.

Jason Byrnes
06-07-2010, 05:39 PM
you're welcome.