I search anything what shouldn't has result, but there is view of all items. Can I anywhere set "not found" message? (sorry for my English:-| )

Comments

douggreen’s picture

Status: Active » Fixed

Yes, views has a setting for this. On admin/build/views, under the page settings set the text under the "Empty Text" fieldset.

PEpe’s picture

Category: support » bug

I made new Drupal 5.2 installation... Contributed modules: Views 5.x-1.6 and views_fastsearch 5.x-1.1.

I created View with
"Provide Page View",
Empty Text: "not found",
Filter "Node: Type > page" and
Exposed filter "Search: Index"...

I created two pages with some text... Ran cron. ... And now if I search word from text on my pages - all right - I have correct result page. But if I search anything what should return "not found", there is still full view with both pages...!

PEpe’s picture

Status: Fixed » Active
budda’s picture

I had the same effect, but resolved it.
Make sure your filter operator isn't set to "AND (empty all)".

douggreen’s picture

Category: bug » support
Status: Active » Closed (fixed)

I think that this resolves your questions. You can use "AND (Empty All)" to get back no results. And you can set the text for empty results in the view.