Searching for documents on Web

Hi,

Can any one solve my problem…

I have form $viewtemplate for XXX. In this I am executing the documents by selecting the country using “restricttocategory”.

My prob is…

If I selected some country eg. “Ireland” which has no documents it should display US documents.

Like that if any country is not having documents by default it should populate US documents.

please help its an urgent issue.

Thanks in advance

regards,

Ravindra M

Subject: Searching for documents on Web

If I understand your question, you want to display ‘US’ documents if someone picks a country that has no documents? Another way to think about this problem might be to have your dropdown list of countries be an @Db of the countries that do have documents. That way, only valid countries will appear in the list.

See performance articles in Developer Network about ways to make that lookup really fast.

regards,

raphael