how to modify advanced search to allow exclusion of PDFs

Post Reply
cindy_walker
Posts: 36
Joined: Tue Jul 24, 2001 2:16 pm

how to modify advanced search to allow exclusion of PDFs

Post 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)
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

how to modify advanced search to allow exclusion of PDFs

Post by mark »

cindy_walker
Posts: 36
Joined: Tue Jul 24, 2001 2:16 pm

how to modify advanced search to allow exclusion of PDFs

Post 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?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

how to modify advanced search to allow exclusion of PDFs

Post 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".
cindy_walker
Posts: 36
Joined: Tue Jul 24, 2001 2:16 pm

how to modify advanced search to allow exclusion of PDFs

Post 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.
Post Reply