If I choose the option "Node types that users shouldn't be allowed to search by" and select three different content types to be omitted from being searched, it still returns results from the omitted types if none of the form checkboxes are ticked in the search page.

If I do choose to tick a single checkbox from the valid ones available it works fine.

But if I tick more than three checkboxes, I then get the following error =>
-------------------
user warning: Data too long for column 'location' at row 1 query: watchdog INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'search', 'Search: floyd type: etc etc etc

-------------------

Thanks
Stephen

Comments

canen’s picture

Status: Active » Closed (fixed)

Search config deals with the display of the form. It doesn't actually control which node type you can search by. There is no way to do this in drupal at the moment that I know of.

The error message has to do with watchdog log, probable entered too much info in the search box or something like that.

spjsche’s picture

Thanks for the response.

I actually only entered a single word, it is the forming of the query by choosing more than three content types that is causing this error, it then attempts to pass the whole query to the watchdog, perhaps passing just the search keywords, and not the content types might solve the issue.

canen’s picture

I think you misunderstood :) The problem is with the search module.

spjsche’s picture

You are quite correct, I do apologise.