|
|
 |
Keyword Options
As described in Select the Releases, you can specify keywords that
the PHP script results.php searches for in the body of articles.
The basic way of doing this is merely specify a single keyword
in the format release_body=KEYWORD, but this may not
be suffienct for your needs. What if you need to specify multiple
keywords (X and Y) or a phrase ("X Y")? The News Release
System can handle these requests, but you need to add a few extra
characters to the arguement to specify how the keyword is handled.
There are three ways keywords are parsed:
- Single Keyword. You can specify a single world
for the script to match in the body of the article.
Type keyword=****, as described in Select the Releases.
- Multiple Keywords. You can specify multiple
keywords, that causes the script to select all releases containing
all words specified.
The script requires characters to be seperated by a space, but
in this case invoked by using the HTML code for a space %20.
Type release_body=****%20****, substituting the ****
with the two keywords you are using.
- Phrase. You can specify a literal phrase you
want to search for, that is, one of more words in the order and
orientation you want to find in the text. This could be a phrase
like "Cancer Research" or a name like "Daniel S. Goldin".
The script requires the keywords to be surround by quotes and
sepearted by a space, but in the case invoked by using the HTML
code for quotes %22 and spaces %20.
Type release_body=%22****%20****%22, substituting
the **** with the words of the phrase you are using.
When you are finished, you should have a URL that looks like:
http://www.bu.edu/phpbin/news/releases/results.php? release_body=KEYWORD
http://www.bu.edu/phpbin/news/releases/results.php? release_body=KEYWORD%20KEYWORD
http://www.bu.edu/phpbin/news/releases/results.php? release_body=%22KEYWORD%20KEYWORD%22
|