Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
search.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2014 at 06:44 UTC
Updated:
30 Jun 2014 at 14:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
adil2345 commentedComment #2
alansaviolobo commentedThis seems to work as expected. can you upload some screenshots please ?
Comment #3
adil2345 commentedAfter the error message If do any search using search-block-form the form is submitting but the URL remains unchanged.Like
/search/node/%25
.I think we need to alter the search query or some thing.
Comment #4
jhodgdonI'm sorry, but I am a bit confused and I need more details. Can you please provide more information?
a) What URL did you start from?
b) What exactly did you type into the search block form, as your search keywords?
c) What URL did you end up on?
d) What did you try to search for then, and what happened?
Comment #5
adil2345 commented@ jhodgdon,
a)In every page i have search block on top.If I am in example.com/user page i do search then URL changes to example.com/search/node/[keyword].
b)I tried every special characters($,#,@,% etc)
c)If i type '$' as my keyword into search block form The URL looks like example.com/search/node/%24
d)Then i tried a word like 'test' (its a node title).But getting the same error(as in screen shot).and no change in URL also.
Comment #6
jhodgdonThe search index only indexes (and lets you search with) letters and numbers, as "words". Some non-words are treated as punctuation, and they break words. Some are not punctuation, and they are just removed before you search or index content.
After removing non-word characters, there is a setting for search (by default the value is 3) that sets the minimum length of a "word" for searching. It looks like you may not have set this value -- you need to.
If you do not include at least one word when you search, you will get the message "You must include at least one positive keyword with 3 characters or more."
So, the behavior you are describing is how the search system works by design. This is not a bug. If you want to search for non-word characters, you cannot use the Core Search module.