Page 1 of 1

how to modify advanced search to allow exclusion of PDFs

Posted: Tue Aug 30, 2005 4:53 pm
by cindy_walker
We would like to modify the advanced search page to allow users the option of excluding PDFs and Word documents from the results. How would I do this? Is it possible?

We have an enormous number of Word and PDF docs and some users have complained that they have to wade through many documents before finding the html page they want.

thank you,

Cindy Walker

Commercial Version 5.01.1108111207 20050211 (sparc-sun-solaris2.6-64-32)

how to modify advanced search to allow exclusion of PDFs

Posted: Tue Aug 30, 2005 6:22 pm
by mark
I think this message has your answer.

http://thunderstone.master.com/texis/ma ... 403ccfaa11

how to modify advanced search to allow exclusion of PDFs

Posted: Tue Aug 30, 2005 6:31 pm
by cindy_walker
I read this message, but it sounds like it accomplishes the same thing as not indexing Word and PDF docs. Does this add a new option on the advanced search page for excluding Word/PDF docs?

how to modify advanced search to allow exclusion of PDFs

Posted: Tue Aug 30, 2005 9:16 pm
by mark
Important part:

Then set unq to something like "pdf doc".

You could put a checkbox on the advanced form with name "unq" and value "pdf doc".

how to modify advanced search to allow exclusion of PDFs

Posted: Wed Aug 31, 2005 3:17 pm
by cindy_walker
Thanks. I have it working now. In the message linked above, the user must have been using Webinator 4. My script was slightly different. ie, I added

"and Url not like $$unq" after
"and Url matches $$suq"

in the collectlocalresults section. I also didn't have to make any extra adjustments other than adding <if $unq ne ""><$count=1> for the counting to be correct.